diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-04-28 17:28:02 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-04-29 15:09:57 -0400 |
commit | ca3f2b297817fc6f1a535bd0281df7ecc3ba6979 (patch) | |
tree | 71ffefdce2d682b02102c6de68906c4fbcf1aa83 /src/mongo/db/dbhelpers.h | |
parent | cf3d1dd725362dd098af038f99f7fb232e3210b3 (diff) | |
download | mongo-ca3f2b297817fc6f1a535bd0281df7ecc3ba6979.tar.gz |
SERVER-13084,SERVER-13632,SERVER-13634 Remove DiskLoc methods hitting disk
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r-- | src/mongo/db/dbhelpers.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h index 86a40682ced..8f5a188ac86 100644 --- a/src/mongo/db/dbhelpers.h +++ b/src/mongo/db/dbhelpers.h @@ -77,10 +77,12 @@ namespace mongo { @return true if object found */ - static bool findOne(Collection* collection, const BSONObj &query, - BSONObj& result, bool requireIndex = false); - static DiskLoc findOne(Collection* collection, const BSONObj &query, - bool requireIndex); + static bool findOne(Collection* collection, + const BSONObj &query, + BSONObj& result, + bool requireIndex = false); + + static DiskLoc findOne(Collection* collection, const BSONObj &query, bool requireIndex); /** * have to be locked already |