summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-05-17 12:12:08 -0400
committerEliot Horowitz <eliot@10gen.com>2013-05-17 12:25:23 -0400
commit3bd0695d6d53f2f6d33139086fe45fa6d645de19 (patch)
tree7baf5ec5f814364b11cf42e974a9c5f24c5a2eb9 /src/mongo
parent7e516efc7845f62bd89344d7b2daf17632169660 (diff)
downloadmongo-3bd0695d6d53f2f6d33139086fe45fa6d645de19.tar.gz
SERVER-6400: mark doc loaded flag late so no one can overwrite
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/matcher_covered.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/matcher_covered.cpp b/src/mongo/db/matcher_covered.cpp
index d6afa752fa8..6517beaad28 100644
--- a/src/mongo/db/matcher_covered.cpp
+++ b/src/mongo/db/matcher_covered.cpp
@@ -91,13 +91,14 @@ namespace mongo {
}
}
- if ( details )
- details->setLoadedRecord( true );
-
BSONObj obj = recLoc.obj();
bool res =
_docMatcher->matches( obj, details ) &&
!isOrClauseDup( obj );
+
+ if ( details )
+ details->setLoadedRecord( true );
+
LOG(5) << "CoveredIndexMatcher _docMatcher->matches() returns " << res << endl;
return res;
}