From eb03d1cbafbbd8371d13538607addb15a3338181 Mon Sep 17 00:00:00 2001 From: malavan Date: Tue, 14 Sep 2021 17:15:44 +0000 Subject: [PATCH] the if statement was actually correct Former-commit-id: 8e4d1ceb859b3440bdec525ff7b8ed4aef86f4b8 --- src/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.cpp b/src/server.cpp index 5052d47d2..3b20f59f7 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2088,7 +2088,7 @@ void databasesCron(bool fMainThread) { /* Perform hash tables rehashing if needed, but only if there are no * other processes saving the DB on disk. Otherwise rehashing is bad * as will cause a lot of copy-on-write of memory pages. */ - if (!(hasActiveChildProcess() || g_pserver->FRdbSaveInProgress())) { + if (!hasActiveChildProcess() || g_pserver->FRdbSaveInProgress()) { /* We use global counters so if we stop the computation at a given * DB we'll be able to start from the successive in the next * cron loop iteration. */