Updated to remove waiting ids till the removed log entry - Updated checking of SYSTEM SYNC REPLICA

This commit is contained in:
Smita Kulkarni 2023-01-27 13:36:44 +01:00
parent a95609e0bc
commit 39966457d9

View File

@ -7553,7 +7553,8 @@ bool StorageReplicatedMergeTree::waitForProcessingQueue(UInt64 max_wait_millisec
}
else
{
wait_for_ids.erase(wait_for_ids.begin(),iterator);
/// Remove items till the removed_log_entry_id (including it)
wait_for_ids.erase(wait_for_ids.begin(),iterator + 1);
}
}