Skip to content

Commit

Permalink
Merge pull request #393 from lylei/ha.fix
Browse files Browse the repository at this point in the history
fix slave safemode
  • Loading branch information
bluebore committed Jul 26, 2016
2 parents dfe59c5 + 8cf9578 commit b36af9f
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 b36af9f

Please sign in to comment.