Fix #12498 crashed when do specific actions (#14698)

Signed-off-by: yhmo <yihua.mo@zilliz.com>
pull/16002/head
groot 2022-01-04 10:35:19 +08:00 committed by GitHub
parent ed01b3874b
commit 9193addd8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -222,6 +222,10 @@ MemTable::ApplyDeletes() {
for (auto& file : files) {
LOG_ENGINE_DEBUG_ << "Applying deletes in segment: " << file.segment_id_;
if (file.row_count_ == 0) {
LOG_ENGINE_DEBUG_ << "Applying deletes in segment: segment is empty, skip";
continue;
}
segment::IdBloomFilterPtr id_bloom_filter_ptr = nullptr;
segment::UidsPtr uids_ptr = nullptr;