diff options
Diffstat (limited to 'src/mongo/db/query/idhack_runner.cpp')
-rw-r--r-- | src/mongo/db/query/idhack_runner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/idhack_runner.cpp b/src/mongo/db/query/idhack_runner.cpp index c57aee98ec2..fcd7b0fce8b 100644 --- a/src/mongo/db/query/idhack_runner.cpp +++ b/src/mongo/db/query/idhack_runner.cpp @@ -156,7 +156,7 @@ namespace mongo { } // Either the data was in memory or we paged it in. - *objOut = loc.obj(); + *objOut = _collection->docFor(loc); // If we're sharded make sure the key belongs to us. We need the object to do this. if (shardingState.needCollectionMetadata(_collection->ns().ns())) { |