summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-06-03 17:27:57 -0400
committerEliot Horowitz <eliot@10gen.com>2012-06-03 17:48:34 -0400
commit8128a0e505edca3e697cfbcfaa17e234478fce47 (patch)
treee4a987dc40053ff1bfa61bbff35485e79dab0462 /src/mongo/db/dbhelpers.h
parent5665dddac29e77195be73f5cda5cd776c810f6ab (diff)
downloadmongo-8128a0e505edca3e697cfbcfaa17e234478fce47.tar.gz
Helpers::findAll helper
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r--src/mongo/db/dbhelpers.h5
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
*/