mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
Fix lock order inversion
This commit is contained in:
parent
04557b9678
commit
c272f4befb
@ -1016,6 +1016,7 @@ FileSegmentsHolderPtr FileCache::getSnapshot()
|
|||||||
{
|
{
|
||||||
assertInitialized();
|
assertInitialized();
|
||||||
|
|
||||||
|
auto cache_lock = cache_guard.lock();
|
||||||
auto lock = metadata.lock();
|
auto lock = metadata.lock();
|
||||||
performDelayedRemovalOfDeletedKeysFromMetadata(lock);
|
performDelayedRemovalOfDeletedKeysFromMetadata(lock);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user