mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Merge pull request #65986 from ClickHouse/fix-race-in-s3queue
Fix race in s3queue
This commit is contained in:
commit
9f1152301e
@ -111,10 +111,12 @@ void ObjectStorageQueueSource::FileIterator::returnForRetry(Source::ObjectInfoPt
|
||||
if (metadata->useBucketsForProcessing())
|
||||
{
|
||||
const auto bucket = metadata->getBucketForPath(object_info->relative_path);
|
||||
std::lock_guard lock(mutex);
|
||||
listed_keys_cache[bucket].keys.emplace_front(object_info);
|
||||
}
|
||||
else
|
||||
{
|
||||
std::lock_guard lock(mutex);
|
||||
objects_to_retry.push_back(object_info);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user