diff options
author | Eliot Horowitz <eliot@10gen.com> | 2013-05-17 12:12:08 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2013-05-17 12:25:23 -0400 |
commit | 3bd0695d6d53f2f6d33139086fe45fa6d645de19 (patch) | |
tree | 7baf5ec5f814364b11cf42e974a9c5f24c5a2eb9 /src/mongo | |
parent | 7e516efc7845f62bd89344d7b2daf17632169660 (diff) | |
download | mongo-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.cpp | 7 |
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; } |