Commit c16be895 authored by Elvin Sindrilaru's avatar Elvin Sindrilaru

MGM: Reinitialize the central draining when becoming a master

parent 82e2890a
......@@ -302,7 +302,6 @@ QdbMaster::SlaveToMaster()
WFE::MoveFromRBackToQ();
// Notify all the nodes about the new master identity
FsView::gFsView.BroadcastMasterId(GetMasterId());
gOFS->mDrainEngine.Start();
mIsMaster = true;
Access::SetSlaveToMasterRules();
}
......@@ -340,6 +339,8 @@ QdbMaster::ApplyMasterConfig(std::string& stdOut, std::string& stdErr,
{
static std::mutex sequential_mutex;
std::unique_lock<std::mutex> lock(sequential_mutex);
gOFS->mDrainEngine.Stop();
gOFS->mDrainEngine.Start();
eos::mgm::FsView::gFsView.SetConfigEngine(nullptr);
gOFS->ConfEngine->SetConfigDir(gOFS->MgmConfigDir.c_str());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment