summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.h
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2016-04-06 11:06:10 -0400
committerDianna Hohensee <dianna.hohensee@10gen.com>2016-04-06 11:06:10 -0400
commit202fd419457c47650be27accb038a700134797ed (patch)
tree842d58673be0d3eaf992eca8566931fb1c77cc7e /src/mongo/db/dbhelpers.h
parent36f3ff8da1f7ae3710ceacc4e13adfd4abdb99da (diff)
downloadmongo-202fd419457c47650be27accb038a700134797ed.tar.gz
Revert "SERVER-23445 create LocalClient class for local queries/writes, implement a find query interface"
This reverts commit 02779909333ff4333c316b54b9fbb2fdd635e15a.
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r--src/mongo/db/dbhelpers.h25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h
index 334857bd10a..53d0839711b 100644
--- a/src/mongo/db/dbhelpers.h
+++ b/src/mongo/db/dbhelpers.h
@@ -69,26 +69,23 @@ struct Helpers {
bool unique,
const char* name);
- /**
- * Fetches a single BSONObj document from the given collection that matches query.
- *
- * @param collection - collection to be queried.
- * @param query - the query to perform. Note this is the low level portion of query so
- * "orderby : ..." won't work.
- * @param result - holds the found BSONObj document, if found.
- * @param requireIndex - if true, assert if no index for the query. A way to guard against
- * writing a slow query.
- * @return true if a document is found.
- */
+ /* fetch a single object from collection ns that matches query.
+ set your db SavedContext first.
+
+ @param query - the query to perform. note this is the low level portion of query so
+ "orderby : ..." won't work.
+
+ @param requireIndex if true, assert if no index for the query. a way to guard against
+ writing a slow query.
+
+ @return true if object found
+ */
static bool findOne(OperationContext* txn,
Collection* collection,
const BSONObj& query,
BSONObj& result,
bool requireIndex = false);
- /**
- * Fetches the RecordId location of a single object from collection ns that matches query.
- */
static RecordId findOne(OperationContext* txn,
Collection* collection,
const BSONObj& query,