1
0
Fork 0

one of db-servers went into recess after many news and drops

This commit is contained in:
Kaveh Vahedipour 2016-04-28 08:46:21 +00:00
parent 1587931a98
commit b8badcb8ce
1 changed files with 2 additions and 1 deletions

View File

@ -186,12 +186,13 @@ void HeartbeatThread::runDBServer() {
bool wasNotified;
{
CONDITION_LOCKER(locker, _condition);
LOG(INFO) << _wasNotified;
wasNotified = _wasNotified;
if (!wasNotified) {
locker.wait(static_cast<uint64_t>(remain * 1000000.0));
wasNotified = _wasNotified;
_wasNotified = false;
}
_wasNotified = false;
}
if (!wasNotified) {