summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/index_scan.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2019-07-19 18:30:33 -0400
committerDavid Storch <david.storch@10gen.com>2019-07-26 16:05:59 -0400
commit94fcb7d03e08014bb6a20ab010539811548d9e83 (patch)
treee44d2d923f59e0430645a13c3844f367cfa1bdb3 /src/mongo/db/exec/index_scan.cpp
parentdc4db514a1ee737db0553f9535033453502b3ac7 (diff)
downloadmongo-94fcb7d03e08014bb6a20ab010539811548d9e83.tar.gz
SERVER-42288 Consolidate Document and WorkingSetMember metadata implementations.
Diffstat (limited to 'src/mongo/db/exec/index_scan.cpp')
-rw-r--r--src/mongo/db/exec/index_scan.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/exec/index_scan.cpp b/src/mongo/db/exec/index_scan.cpp
index f74743629bb..7e5c9c19152 100644
--- a/src/mongo/db/exec/index_scan.cpp
+++ b/src/mongo/db/exec/index_scan.cpp
@@ -39,7 +39,6 @@
#include "mongo/db/concurrency/write_conflict_exception.h"
#include "mongo/db/exec/filter.h"
#include "mongo/db/exec/scoped_timer.h"
-#include "mongo/db/exec/working_set_computed_data.h"
#include "mongo/db/index/index_access_method.h"
#include "mongo/db/index_names.h"
#include "mongo/db/query/index_bounds_builder.h"
@@ -217,8 +216,7 @@ PlanStage::StageState IndexScan::doWork(WorkingSetID* out) {
_workingSet->transitionToRecordIdAndIdx(id);
if (_addKeyMetadata) {
- member->addComputed(
- new IndexKeyComputedData(IndexKeyComputedData::rehydrateKey(_keyPattern, kv->key)));
+ member->metadata().setIndexKey(IndexKeyEntry::rehydrateKey(_keyPattern, kv->key));
}
*out = id;