Update FileSegment.cpp

This commit is contained in:
Kseniia Sumarokova 2022-04-12 11:59:58 +02:00 committed by GitHub
parent a77a228ab8
commit 50b5684d00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -667,14 +667,6 @@ FileSegmentsHolder::~FileSegmentsHolder()
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);
continue;
}