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/commands/clone.cpp | |
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/commands/clone.cpp')
-rw-r--r-- | src/mongo/db/commands/clone.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/commands/clone.cpp b/src/mongo/db/commands/clone.cpp index 0154e863a31..bd0523dfa7d 100644 --- a/src/mongo/db/commands/clone.cpp +++ b/src/mongo/db/commands/clone.cpp @@ -118,10 +118,9 @@ namespace mongo { set<string> clonedColls; Lock::DBWrite dbXLock(txn->lockState(), dbname); - Client::Context context( dbname ); Cloner cloner; - bool rval = cloner.go(txn, context, from, opts, &clonedColls, errmsg); + bool rval = cloner.go(txn, dbname, from, opts, &clonedColls, errmsg); BSONArrayBuilder barr; barr.append( clonedColls ); |