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/cloner.h | |
parent | 71cbb04eb8262b0bdf255056f26101466c11b43d (diff) | |
download | mongo-4de88387eec6c0bb08b10d0ba1574a656f56232d.tar.gz |
SERVER-13641 rename TransactionExperiment to OperationContext
Diffstat (limited to 'src/mongo/db/cloner.h')
-rw-r--r-- | src/mongo/db/cloner.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/cloner.h b/src/mongo/db/cloner.h index 1cd9e06989f..4c1abbf6c42 100644 --- a/src/mongo/db/cloner.h +++ b/src/mongo/db/cloner.h @@ -40,7 +40,7 @@ namespace mongo { class DBClientBase; class DBClientCursor; class Query; - class TransactionExperiment; + class OperationContext; class Cloner: boost::noncopyable { public: @@ -55,14 +55,14 @@ namespace mongo { void setConnection( DBClientBase *c ) { _conn.reset( c ); } /** copy the entire database */ - bool go(TransactionExperiment* txn, + bool go(OperationContext* txn, Client::Context& ctx, const string& masterHost, const CloneOptions& opts, set<string>* clonedColls, string& errmsg, int *errCode = 0); - bool copyCollection(TransactionExperiment* txn, + bool copyCollection(OperationContext* txn, const string& ns, const BSONObj& query, string& errmsg, @@ -85,7 +85,7 @@ namespace mongo { * Currently this will only be set if there is an error in the initial * system.namespaces query. */ - static bool cloneFrom(TransactionExperiment* txn, + static bool cloneFrom(OperationContext* txn, Client::Context& context, const string& masterHost, const CloneOptions& options, @@ -96,11 +96,11 @@ namespace mongo { /** * Copy a collection (and indexes) from a remote host */ - static bool copyCollectionFromRemote(TransactionExperiment* txn, + static bool copyCollectionFromRemote(OperationContext* txn, const string& host, const string& ns, string& errmsg); private: - void copy(TransactionExperiment* txn, + void copy(OperationContext* txn, Client::Context& ctx, const char *from_ns, const char *to_ns, |