summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/pipeline_proxy.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2015-02-02 15:39:22 -0500
committerEliot Horowitz <eliot@10gen.com>2015-02-02 15:40:16 -0500
commitd46a5c78c0d046f1975aca2eaa7f055a713c720f (patch)
treee694224fd2802cdbeecde7d87b5983d19bc49f31 /src/mongo/db/exec/pipeline_proxy.cpp
parent87f1334585928a2b86407f68ecb6b35c62855b24 (diff)
downloadmongo-d46a5c78c0d046f1975aca2eaa7f055a713c720f.tar.gz
SERVER-17132: Added SnapshotId and Snapshotted and use them in query to make sure we use correct versions of docs
Diffstat (limited to 'src/mongo/db/exec/pipeline_proxy.cpp')
-rw-r--r--src/mongo/db/exec/pipeline_proxy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/exec/pipeline_proxy.cpp b/src/mongo/db/exec/pipeline_proxy.cpp
index 5369429cd07..2bcad44d998 100644
--- a/src/mongo/db/exec/pipeline_proxy.cpp
+++ b/src/mongo/db/exec/pipeline_proxy.cpp
@@ -58,7 +58,7 @@ namespace mongo {
if (!_stash.empty()) {
*out = _ws->allocate();
WorkingSetMember* member = _ws->get(*out);
- member->obj = _stash.back();
+ member->obj = Snapshotted<BSONObj>(SnapshotId(), _stash.back());
_stash.pop_back();
member->state = WorkingSetMember::OWNED_OBJ;
return PlanStage::ADVANCED;
@@ -67,7 +67,7 @@ namespace mongo {
if (boost::optional<BSONObj> next = getNextBson()) {
*out = _ws->allocate();
WorkingSetMember* member = _ws->get(*out);
- member->obj = *next;
+ member->obj = Snapshotted<BSONObj>(SnapshotId(), *next);
member->state = WorkingSetMember::OWNED_OBJ;
return PlanStage::ADVANCED;
}