summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r--src/mongo/db/dbhelpers.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h
index a8aebc58c25..15aa8d96e77 100644
--- a/src/mongo/db/dbhelpers.h
+++ b/src/mongo/db/dbhelpers.h
@@ -80,8 +80,10 @@ namespace mongo {
@return true if object found
*/
- static bool findOne(const StringData& ns, const BSONObj &query, BSONObj& result, bool requireIndex = false);
- static DiskLoc findOne(const StringData& ns, 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