1
0
Fork 0

honor --server.disable-statistics for statistics aggregator thread

This commit is contained in:
Jan Steemann 2015-07-21 19:20:37 +02:00
parent abf69329e2
commit dd03c03216
2 changed files with 2 additions and 1 deletions

View File

@ -791,6 +791,7 @@ int ArangoServer::startupServer () {
if (_applicationServer->programOptions().has("no-server")) { if (_applicationServer->programOptions().has("no-server")) {
startServer = false; startServer = false;
TRI_ENABLE_STATISTICS = false;
} }
// check version // check version

View File

@ -387,7 +387,7 @@ static uint64_t TRI_GetPhysicalMemory () {
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
static void StatisticsQueueWorker (void* data) { static void StatisticsQueueWorker (void* data) {
while (! Shutdown) { while (! Shutdown && TRI_ENABLE_STATISTICS) {
size_t count = ProcessAllRequestStatistics(); size_t count = ProcessAllRequestStatistics();
if (count == 0) { if (count == 0) {