[SERVER-42583] Thread ExpressionContext to SortStage so that it can access 'tempDir' Created: 01/Aug/19  Updated: 29/Oct/23  Resolved: 13/Sep/19

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Task Priority: Major - P3
Reporter: Mikhail Ivkov (Inactive) Assignee: David Storch
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2019-09-23
Participants:

 Description   

The ExpressionContext for a find command is currently held on the CanonicalQuery. In preparation for allowing SortStage to perform an external sort, we need to pass the tempDir and allowDiskUse settings for the query through to SortStage. This should be done by passing the find command's ExpressionContext through to SortStage's constructor.



 Comments   
Comment by Githook User [ 13/Sep/19 ]

Author:

{'name': 'David Storch', 'username': 'dstorch', 'email': 'david.storch@mongodb.com'}

Message: SERVER-42583 Thread 'tempDir' through to SortStage.

This makes it possible to instantiate a SortExecutor inside
SortStage.
Branch: master
https://github.com/mongodb/mongo/commit/092c4a7944279a15dbb2fbcf7c03bcd5105092db

Generated at Thu Feb 08 05:00:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.