diff options
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r-- | src/mongo/db/dbhelpers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h index 8fd2ab8deb0..0ab62dc38a3 100644 --- a/src/mongo/db/dbhelpers.h +++ b/src/mongo/db/dbhelpers.h @@ -66,6 +66,11 @@ namespace mongo { static DiskLoc findOne(const char *ns, const BSONObj &query, bool requireIndex); /** + * have to be locked already + */ + static vector<BSONObj> findAll( const string& ns , const BSONObj& query ); + + /** * @param foundIndex if passed in will be set to 1 if ns and index found * @return true if object found */ |