diff options
author | David Storch <david.storch@10gen.com> | 2019-07-19 18:30:33 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2019-07-26 16:05:59 -0400 |
commit | 94fcb7d03e08014bb6a20ab010539811548d9e83 (patch) | |
tree | e44d2d923f59e0430645a13c3844f367cfa1bdb3 /src/mongo/db/exec/idhack.cpp | |
parent | dc4db514a1ee737db0553f9535033453502b3ac7 (diff) | |
download | mongo-94fcb7d03e08014bb6a20ab010539811548d9e83.tar.gz |
SERVER-42288 Consolidate Document and WorkingSetMember metadata implementations.
Diffstat (limited to 'src/mongo/db/exec/idhack.cpp')
-rw-r--r-- | src/mongo/db/exec/idhack.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/exec/idhack.cpp b/src/mongo/db/exec/idhack.cpp index b287dc12531..13a5837b53d 100644 --- a/src/mongo/db/exec/idhack.cpp +++ b/src/mongo/db/exec/idhack.cpp @@ -39,7 +39,6 @@ #include "mongo/db/exec/projection.h" #include "mongo/db/exec/scoped_timer.h" #include "mongo/db/exec/working_set_common.h" -#include "mongo/db/exec/working_set_computed_data.h" #include "mongo/db/index/btree_access_method.h" namespace mongo { @@ -133,8 +132,7 @@ PlanStage::StageState IDHackStage::advance(WorkingSetID id, if (_addKeyMetadata) { BSONObj ownedKeyObj = member->obj.value()["_id"].wrap().getOwned(); - member->addComputed( - new IndexKeyComputedData(IndexKeyComputedData::rehydrateKey(_key, ownedKeyObj))); + member->metadata().setIndexKey(IndexKeyEntry::rehydrateKey(_key, ownedKeyObj)); } _done = true; |