Don't write in the lock

Former-commit-id: 93b7364aaecbe578be4b75c18c840c4b396c7d4e
This commit is contained in:
John Sully 2020-12-17 06:52:59 +00:00
parent 07a52ceb67
commit 761dd95d2a

View File

@ -2545,7 +2545,6 @@ void beforeSleep(struct aeEventLoop *eventLoop) {
latencyEndMonitor(commit_latency);
latencyAddSampleIfNeeded("storage-commit", commit_latency);
handleClientsWithPendingWrites(iel, aof_state);
if (!serverTL->gcEpoch.isReset())
g_pserver->garbageCollector.endEpoch(serverTL->gcEpoch, true /*fNoFree*/);
serverTL->gcEpoch.reset();