summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rs_sync.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-06-13 15:35:51 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-06-27 22:54:43 -0400
commit52edab726185cbba1401cb46de221fb3d1cb0408 (patch)
tree165f9e8fded43db1dac6ab9a1c46cc2367362e5b /src/mongo/db/repl/rs_sync.cpp
parentecfc44d7bce08660804fa4475b45f9a09d203f09 (diff)
downloadmongo-52edab726185cbba1401cb46de221fb3d1cb0408.tar.gz
SERVER-13961 Add OperationContext argument to Client::Context
Time tracking and database access in Client::Context require access to the OperationContext. Adding it as argument. This is in preparation for removing LockState from Client.
Diffstat (limited to 'src/mongo/db/repl/rs_sync.cpp')
-rw-r--r--src/mongo/db/repl/rs_sync.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/repl/rs_sync.cpp b/src/mongo/db/repl/rs_sync.cpp
index 41b7247bd52..b0a16002336 100644
--- a/src/mongo/db/repl/rs_sync.cpp
+++ b/src/mongo/db/repl/rs_sync.cpp
@@ -228,8 +228,9 @@ namespace repl {
bool ReplSetImpl::resync(string& errmsg) {
changeState(MemberState::RS_RECOVERING);
- Client::Context ctx("local");
OperationContextImpl txn;
+ Client::Context ctx(&txn, "local");
+
ctx.db()->dropCollection(&txn, "local.oplog.rs");
{
boost::unique_lock<boost::mutex> lock(theReplSet->initialSyncMutex);