mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Update FileSegment.cpp
This commit is contained in:
parent
a77a228ab8
commit
50b5684d00
@ -667,14 +667,6 @@ FileSegmentsHolder::~FileSegmentsHolder()
|
|||||||
|
|
||||||
if (file_segment->detached)
|
if (file_segment->detached)
|
||||||
{
|
{
|
||||||
#ifndef NDEBUG
|
|
||||||
{
|
|
||||||
std::lock_guard cache_lock(cache->mutex);
|
|
||||||
std::lock_guard segment_lock(file_segment->mutex);
|
|
||||||
bool is_last_holder = cache->isLastFileSegmentHolder(file_segment->key(), file_segment->offset(), cache_lock, segment_lock);
|
|
||||||
assert(is_last_holder);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
file_segment_it = file_segments.erase(current_file_segment_it);
|
file_segment_it = file_segments.erase(current_file_segment_it);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user