summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-04-17 02:42:34 -0400
committerEliot Horowitz <eliot@10gen.com>2014-04-17 13:14:04 -0400
commit92748f2572fd6492bfccd56e339b7255017d15ee (patch)
treeb1b40e383042ca10fc52b72e678765bb22e67fcf /src/mongo/db/dbhelpers.h
parentce52f313ca52759d606886641f44541bd7baf5bd (diff)
downloadmongo-92748f2572fd6492bfccd56e339b7255017d15ee.tar.gz
SERVER-13084: remove many cc() calls from query/exec world
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