Removed state_mutex lock from addSubscriber - Updated checking of SYSTEM SYNC REPLICA

This commit is contained in:
Smita Kulkarni 2023-02-07 12:19:58 +01:00
parent 135615cda6
commit fb765696b6
2 changed files with 0 additions and 2 deletions

View File

@ -2478,7 +2478,6 @@ String ReplicatedMergeTreeMergePredicate::getCoveringVirtualPart(const String &
ReplicatedMergeTreeQueue::SubscriberHandler
ReplicatedMergeTreeQueue::addSubscriber(ReplicatedMergeTreeQueue::SubscriberCallBack && callback)
{
std::lock_guard lock(state_mutex);
std::lock_guard lock_subscribers(subscribers_mutex);
auto it = subscribers.emplace(subscribers.end(), std::move(callback));

View File

@ -7587,7 +7587,6 @@ bool StorageReplicatedMergeTree::waitForProcessingQueue(UInt64 max_wait_millisec
if (partial_shutdown_called)
throw Exception(ErrorCodes::ABORTED, "Shutdown is called for table");
}
return true;
}