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.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h
index c10c6f24a21..76ef3271c91 100644
--- a/src/mongo/db/dbhelpers.h
+++ b/src/mongo/db/dbhelpers.h
@@ -42,7 +42,7 @@ namespace mongo {
class Collection;
class Cursor;
- class TransactionExperiment;
+ class OperationContext;
/**
* db helpers are helper functions and classes that let us easily manipulate the local
@@ -64,7 +64,7 @@ namespace mongo {
Note: does nothing if collection does not yet exist.
*/
- static void ensureIndex(TransactionExperiment* txn,
+ static void ensureIndex(OperationContext* txn,
Collection* collection,
BSONObj keyPattern,
bool unique,
@@ -113,8 +113,8 @@ namespace mongo {
@return true if object exists.
*/
static bool getSingleton(const char *ns, BSONObj& result);
- static void putSingleton(TransactionExperiment* txn, const char *ns, BSONObj obj);
- static void putSingletonGod(TransactionExperiment* txn, const char *ns, BSONObj obj, bool logTheOp);
+ static void putSingleton(OperationContext* txn, const char *ns, BSONObj obj);
+ static void putSingletonGod(OperationContext* txn, const char *ns, BSONObj obj, bool logTheOp);
static bool getFirst(const char *ns, BSONObj& result) { return getSingleton(ns, result); }
static bool getLast(const char *ns, BSONObj& result); // get last object int he collection; e.g. {$natural : -1}
@@ -123,7 +123,7 @@ namespace mongo {
* you do not have to have Context set
* o has to have an _id field or will assert
*/
- static void upsert( TransactionExperiment* txn,
+ static void upsert( OperationContext* txn,
const string& ns,
const BSONObj& o,
bool fromMigrate = false );
@@ -162,7 +162,7 @@ namespace mongo {
* Does oplog the individual document deletions.
* // TODO: Refactor this mechanism, it is growing too large
*/
- static long long removeRange( TransactionExperiment* txn,
+ static long long removeRange( OperationContext* txn,
const KeyRange& range,
bool maxInclusive = false,
bool secondaryThrottle = false,
@@ -201,7 +201,7 @@ namespace mongo {
* You do not need to set the database before calling.
* Does not oplog the operation.
*/
- static void emptyCollection(TransactionExperiment* txn, const char *ns);
+ static void emptyCollection(OperationContext* txn, const char *ns);
/**
* for saving deleted bson objects to a flat file