summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/resync.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/resync.cpp')
-rw-r--r--src/mongo/db/repl/resync.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/resync.cpp b/src/mongo/db/repl/resync.cpp
index 1adc44903e6..1c4322d81cd 100644
--- a/src/mongo/db/repl/resync.cpp
+++ b/src/mongo/db/repl/resync.cpp
@@ -57,7 +57,8 @@ namespace mongo {
}
CmdResync() : Command("resync") { }
- virtual bool run(const string& dbname,
+ virtual bool newRun(TransactionExperiment* txn,
+ const string& dbname,
BSONObj& cmdObj,
int,
string& errmsg,
@@ -67,7 +68,6 @@ namespace mongo {
const std::string ns = parseNs(dbname, cmdObj);
Lock::GlobalWrite globalWriteLock;
Client::Context ctx(ns);
- DurTransaction txn;
if (replSettings.usingReplSets()) {
if (theReplSet->isPrimary()) {
@@ -90,7 +90,7 @@ namespace mongo {
if ( !waitForSyncToFinish( errmsg ) )
return false;
- ReplSource::forceResyncDead( &txn, "client" );
+ ReplSource::forceResyncDead( txn, "client" );
result.append( "info", "triggered resync for all sources" );
return true;
}