summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/idhack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/idhack.cpp')
-rw-r--r--src/mongo/db/exec/idhack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/idhack.cpp b/src/mongo/db/exec/idhack.cpp
index 13a5837b53d..4ff011d024e 100644
--- a/src/mongo/db/exec/idhack.cpp
+++ b/src/mongo/db/exec/idhack.cpp
@@ -131,7 +131,7 @@ PlanStage::StageState IDHackStage::advance(WorkingSetID id,
invariant(member->hasObj());
if (_addKeyMetadata) {
- BSONObj ownedKeyObj = member->obj.value()["_id"].wrap().getOwned();
+ BSONObj ownedKeyObj = member->doc.value().toBson()["_id"].wrap().getOwned();
member->metadata().setIndexKey(IndexKeyEntry::rehydrateKey(_key, ownedKeyObj));
}