From a6dbf1f277b36f91bc94b0dd184293e6231d1a7d Mon Sep 17 00:00:00 2001 From: Ravin Perera <33562092+ravinsp@users.noreply.github.com> Date: Thu, 27 May 2021 22:41:02 +0530 Subject: [PATCH] Fixed busy loop issue in hpfs sync. (#313) --- src/hpfs/hpfs_sync.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hpfs/hpfs_sync.cpp b/src/hpfs/hpfs_sync.cpp index fc662828..73e69d2d 100644 --- a/src/hpfs/hpfs_sync.cpp +++ b/src/hpfs/hpfs_sync.cpp @@ -91,9 +91,14 @@ namespace hpfs if (!prev_responses_processed) util::sleep(IDLE_WAIT); + prev_responses_processed = false; + // Check whether we have any new/changed targets. if (check_incoming_targets() == -1) + { + LOG_INFO << "Hpfs " << name << " sync: Sopping worker due to error in target check."; break; + } // Move the received hpfs responses to the local response list. swap_collected_responses();