diff options
Diffstat (limited to 'src/mongo/db/repl/master_slave.cpp')
-rw-r--r-- | src/mongo/db/repl/master_slave.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/repl/master_slave.cpp b/src/mongo/db/repl/master_slave.cpp index 074a7fcbe77..7a9eea27a98 100644 --- a/src/mongo/db/repl/master_slave.cpp +++ b/src/mongo/db/repl/master_slave.cpp @@ -1348,12 +1348,14 @@ void startMasterSlave(OperationContext* txn) { verify(replSettings.slave == SimpleSlave); LOG(1) << "slave=true" << endl; stdx::thread repl_thread(replSlaveThread); + repl_thread.detach(); } if (replSettings.master) { LOG(1) << "master=true" << endl; createOplog(txn); stdx::thread t(replMasterThread); + t.detach(); } if (replSettings.fastsync) { |