mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Rename
This commit is contained in:
parent
7df815d280
commit
44377b0180
@ -396,11 +396,11 @@ void CacheMetadata::downloadThreadFunc()
|
||||
|| file_segment->state() != FileSegment::State::PARTIALLY_DOWNLOADED)
|
||||
continue;
|
||||
|
||||
auto lock = lockKeyMetadata(file_segment->key(), KeyNotFoundPolicy::RETURN_NULL);
|
||||
if (!lock)
|
||||
auto locked_key = lockKeyMetadata(file_segment->key(), KeyNotFoundPolicy::RETURN_NULL);
|
||||
if (!locked_key)
|
||||
continue;
|
||||
|
||||
auto file_segment_metadata = lock->tryGetByOffset(file_segment->offset());
|
||||
auto file_segment_metadata = locked_key->tryGetByOffset(file_segment->offset());
|
||||
if (!file_segment_metadata || file_segment_metadata->evicting())
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user