diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-06-04 22:32:33 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-06-09 12:09:09 -0400 |
commit | 7650ab7a985e23098270c8893320c5b151d16d7e (patch) | |
tree | 3ca76f2e0a6db84439ce78080d94c80f8cb3e5ff /src/mongo/db/cloner.h | |
parent | 36d1beca1267a47cf4e9d79742caec8e5ad608fa (diff) | |
download | mongo-7650ab7a985e23098270c8893320c5b151d16d7e.tar.gz |
SERVER-13922 Remove Context and dbtemprelease from the cloner
Substituting with plain TempRelease, combined with re-acquiring the
database after lock is re-acquired.
Since copydb/clonedb are not shard-aware operations, we skip the shard
version check.
The usages, which originate from replication are all from the secondaries,
so there is no need for version check there either.
Diffstat (limited to 'src/mongo/db/cloner.h')
-rw-r--r-- | src/mongo/db/cloner.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/cloner.h b/src/mongo/db/cloner.h index f30429ca99f..bf66b51e688 100644 --- a/src/mongo/db/cloner.h +++ b/src/mongo/db/cloner.h @@ -52,7 +52,7 @@ namespace mongo { /** copy the entire database */ bool go(OperationContext* txn, - Client::Context& ctx, + const std::string& toDBName, const std::string& masterHost, const CloneOptions& opts, std::set<std::string>* clonedColls, @@ -70,7 +70,7 @@ namespace mongo { private: void copy(OperationContext* txn, - Client::Context& ctx, + const std::string& toDBName, const char *from_ns, const char *to_ns, bool isindex, |