summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/filter.h
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/filter.h
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/filter.h')
-rw-r--r--src/mongo/db/exec/filter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/exec/filter.h b/src/mongo/db/exec/filter.h
index 23970976e35..802c68993e5 100644
--- a/src/mongo/db/exec/filter.h
+++ b/src/mongo/db/exec/filter.h
@@ -48,14 +48,14 @@ namespace mongo {
// that it should do a fetch beforehand.
BSONObj toBSON() const {
invariant(_wsm->hasObj());
- return _wsm->obj;
+ return _wsm->obj.value();
}
virtual ElementIterator* allocateIterator(const ElementPath* path) const {
// BSONElementIterator does some interesting things with arrays that I don't think
// SimpleArrayElementIterator does.
if (_wsm->hasObj()) {
- return new BSONElementIterator(path, _wsm->obj);
+ return new BSONElementIterator(path, _wsm->obj.value());
}
// NOTE: This (kind of) duplicates code in WorkingSetMember::getFieldDotted.