From 847dade8c8d6f88f01975f0c7d835f3401f00b07 Mon Sep 17 00:00:00 2001 From: Dmitry Yemanov Date: Fri, 30 Jul 2021 15:59:41 +0300 Subject: [PATCH] Corrected the condition --- src/remote/server/ReplServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/server/ReplServer.cpp b/src/remote/server/ReplServer.cpp index 5835ecd04b..94403ffda0 100644 --- a/src/remote/server/ReplServer.cpp +++ b/src/remote/server/ReplServer.cpp @@ -770,7 +770,7 @@ namespace // If no new segments appeared since our last attempt, // then there's no point in replaying the whole sequence - if (max_sequence == last_sequence) + if (max_sequence == last_sequence && !last_offset) { target->verbose("No new segments found, suspending for %u seconds", config->applyIdleTimeout);