summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/idhack.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@mongodb.com>2019-09-12 21:31:40 +0000
committerevergreen <evergreen@mongodb.com>2019-09-12 21:31:40 +0000
commit9e98a74e5f206bf28f598c7e94a4e3901c7a1bd7 (patch)
tree8de7ef2fcb2eca439a49af570998f637761bebe8 /src/mongo/db/exec/idhack.cpp
parente3a8d37b8775d90f85cb64f3630cb547a886baa1 (diff)
downloadmongo-9e98a74e5f206bf28f598c7e94a4e3901c7a1bd7.tar.gz
SERVER-42981 Make WorkingSetMember compatible for use with the Sorter.
The bulk of this change is to implement serialization and deserialization routines for WorkingSetMember, so that the Sorter can spill WorkingSetMembers to disk. In addition, this changes the SortExecutor to sort WorkingSetMembers internally as opposed to sorting Documents.
Diffstat (limited to 'src/mongo/db/exec/idhack.cpp')
-rw-r--r--src/mongo/db/exec/idhack.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/exec/idhack.cpp b/src/mongo/db/exec/idhack.cpp
index 02e347dda4d..64848cb50e6 100644
--- a/src/mongo/db/exec/idhack.cpp
+++ b/src/mongo/db/exec/idhack.cpp
@@ -53,7 +53,7 @@ IDHackStage::IDHackStage(OperationContext* opCtx,
CanonicalQuery* query,
WorkingSet* ws,
const IndexDescriptor* descriptor)
- : RequiresIndexStage(kStageType, opCtx, descriptor),
+ : RequiresIndexStage(kStageType, opCtx, descriptor, ws),
_workingSet(ws),
_key(query->getQueryObj()["_id"].wrap()) {
_specificStats.indexName = descriptor->indexName();
@@ -64,7 +64,7 @@ IDHackStage::IDHackStage(OperationContext* opCtx,
const BSONObj& key,
WorkingSet* ws,
const IndexDescriptor* descriptor)
- : RequiresIndexStage(kStageType, opCtx, descriptor), _workingSet(ws), _key(key) {
+ : RequiresIndexStage(kStageType, opCtx, descriptor, ws), _workingSet(ws), _key(key) {
_specificStats.indexName = descriptor->indexName();
}