mirror of https://gitee.com/bigwinds/arangodb
fixed merge conflict
This commit is contained in:
parent
6e851249e3
commit
df0fe99d5e
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue