diff options
author | Hari Khalsa <hkhalsa@10gen.com> | 2014-05-15 13:26:48 -0400 |
---|---|---|
committer | Hari Khalsa <hkhalsa@10gen.com> | 2014-05-15 13:56:05 -0400 |
commit | 4de88387eec6c0bb08b10d0ba1574a656f56232d (patch) | |
tree | 7fdc9a0acd251b5b8b0a8f3de45ce1c2ecf7e94c /src/mongo/db/dbhelpers.h | |
parent | 71cbb04eb8262b0bdf255056f26101466c11b43d (diff) | |
download | mongo-4de88387eec6c0bb08b10d0ba1574a656f56232d.tar.gz |
SERVER-13641 rename TransactionExperiment to OperationContext
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r-- | src/mongo/db/dbhelpers.h | 14 |
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 |