From 9703773a636d50d20ab271f10864338af78ee381 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 28 Apr 2021 00:55:27 +0300 Subject: [PATCH] Fix has_flushes setting --- src/cluster_client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cluster_client.cpp b/src/cluster_client.cpp index d0173cd0..8599aac7 100644 --- a/src/cluster_client.cpp +++ b/src/cluster_client.cpp @@ -155,14 +155,14 @@ restart: has_writes = has_writes || !rm; if (is_flush) { - has_flushes = has_writes || !rm; + has_flushes = has_flushes || !rm; } } else if (opcode == OSD_OP_SYNC) { // Postpone writes until previous SYNC completes // ...so dirty_writes can't contain anything newer than SYNC - has_flushes = has_writes || !rm; + has_flushes = has_flushes || !rm; } if (rm) {