mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of github.com:arangodb/arangodb into devel
This commit is contained in:
commit
5046d00e53
|
@ -327,7 +327,7 @@ void HeartbeatThread::runCoordinator() {
|
|||
|
||||
while (!isStopping()) {
|
||||
try {
|
||||
LOG_TOPIC(TRACE, Logger::HEARTBEAT) << "sending heartbeat to agency";
|
||||
LOG_TOPIC(DEBUG, Logger::HEARTBEAT) << "sending heartbeat to agency";
|
||||
|
||||
double const start = TRI_microtime();
|
||||
// send our state to the agency.
|
||||
|
|
|
@ -127,8 +127,17 @@ static void ProcessRequestStatistics(TRI_request_statistics_t* statistics) {
|
|||
statistics->reset();
|
||||
|
||||
// put statistics item back onto the freelist
|
||||
bool ok = RequestFreeList.push(statistics);
|
||||
TRI_ASSERT(ok);
|
||||
int tries = 0;
|
||||
while (++tries < 1000) {
|
||||
if (RequestFreeList.push(statistics)) {
|
||||
break;
|
||||
}
|
||||
usleep(10000);
|
||||
}
|
||||
if (tries > 1) {
|
||||
LOG_TOPIC(WARN, Logger::REQUESTS) << "RequestFreeList.push failed "
|
||||
<< tries-1 << " times.";
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue