mirror of https://gitee.com/bigwinds/arangodb
honor --server.disable-statistics for statistics aggregator thread
This commit is contained in:
parent
abf69329e2
commit
dd03c03216
|
@ -791,6 +791,7 @@ int ArangoServer::startupServer () {
|
|||
|
||||
if (_applicationServer->programOptions().has("no-server")) {
|
||||
startServer = false;
|
||||
TRI_ENABLE_STATISTICS = false;
|
||||
}
|
||||
|
||||
// check version
|
||||
|
|
|
@ -387,7 +387,7 @@ static uint64_t TRI_GetPhysicalMemory () {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static void StatisticsQueueWorker (void* data) {
|
||||
while (! Shutdown) {
|
||||
while (! Shutdown && TRI_ENABLE_STATISTICS) {
|
||||
size_t count = ProcessAllRequestStatistics();
|
||||
|
||||
if (count == 0) {
|
||||
|
|
Loading…
Reference in New Issue