1
0
Fork 0

fixed merge conflict

This commit is contained in:
Frank Celler 2016-02-24 18:47:27 +01:00
parent 6e851249e3
commit df0fe99d5e
1 changed files with 3 additions and 7 deletions

View File

@ -267,7 +267,7 @@ void HeartbeatThread::runCoordinator() {
setReady();
while (!_stop) {
while (!isStopping()) {
LOG(TRACE) << "sending heartbeat to agency";
double const start = TRI_microtime();
@ -276,7 +276,7 @@ void HeartbeatThread::runCoordinator() {
// we don't care if this fails
sendState();
if (_stop) {
if (isStopping()) {
break;
}
@ -290,7 +290,7 @@ void HeartbeatThread::runCoordinator() {
}
}
if (_stop) {
if (isStopping()) {
break;
}
@ -379,10 +379,6 @@ void HeartbeatThread::runCoordinator() {
}
}
// another thread is waiting for this value to appear in order to shut down
// properly
_stop = 2;
LOG(TRACE) << "stopped heartbeat thread";
}