Skip to content

Commit

Permalink
fix slave safemode
Browse files Browse the repository at this point in the history
  • Loading branch information
lylei committed Jul 26, 2016
1 parent 52f7e0e commit 8cf9578
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nameserver/nameserver_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ void NameServerImpl::CheckLeader() {
LOG(FATAL, "LogRemote namespace update fail");
}
safe_mode_ = FLAGS_nameserver_safemode_time;
start_time_ = common::timer::get_micros();
work_thread_pool_->DelayTask(1000, boost::bind(&NameServerImpl::CheckSafemode, this));
is_leader_ = true;
} else {
Expand Down

0 comments on commit 8cf9578

Please sign in to comment.