if statement was actually correct

Former-commit-id: d44b99afdf1ec92f8a36f0c091c37328008d867b
This commit is contained in:
malavan 2021-09-14 17:17:08 +00:00
parent 86784fe9ba
commit 765885bd7b

View File

@ -2086,7 +2086,7 @@ void databasesCron(bool fMainThread) {
/* Perform hash tables rehashing if needed, but only if there are no /* Perform hash tables rehashing if needed, but only if there are no
* other processes saving the DB on disk. Otherwise rehashing is bad * other processes saving the DB on disk. Otherwise rehashing is bad
* as will cause a lot of copy-on-write of memory pages. */ * 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 /* 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 * DB we'll be able to start from the successive in the next
* cron loop iteration. */ * cron loop iteration. */