summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-12-24 18:44:18 -0500
committerEliot Horowitz <eliot@10gen.com>2013-12-30 00:41:27 -0500
commit7de1f17148231074cdf74177dcbf8e8fc534949b (patch)
tree886e7008704a2152fa47354e513ba9cb4cf0969a /src/mongo/db/dbhelpers.h
parent29e691a91c72b28ef50faddc7ef6f24523788aee (diff)
downloadmongo-7de1f17148231074cdf74177dcbf8e8fc534949b.tar.gz
SERVER-12213: bulk of index refactor, making catalog/record store come via catalog - js tests work
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r--src/mongo/db/dbhelpers.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h
index 58bb1881796..ce7b85f3968 100644
--- a/src/mongo/db/dbhelpers.h
+++ b/src/mongo/db/dbhelpers.h
@@ -40,6 +40,7 @@ namespace mongo {
extern const BSONObj reverseNaturalObj; // {"$natural": -1 }
+ class Collection;
class Cursor;
/**
@@ -90,9 +91,10 @@ namespace mongo {
static bool findById(Client&, const char *ns, BSONObj query, BSONObj& result ,
bool * nsFound = 0 , bool * indexFound = 0 );
- /* uasserts if no _id index.
- @return null loc if not found */
- static DiskLoc findById(NamespaceDetails *d, BSONObj query);
+ /* TODO: should this move into Collection?
+ * uasserts if no _id index.
+ * @return null loc if not found */
+ static DiskLoc findById(Collection* collection, const BSONObj& query);
/** Get/put the first (or last) object from a collection. Generally only useful if the collection
only ever has a single object -- which is a "singleton collection".