浏览代码

Merge remote-tracking branch 'refs/remotes/origin/main'

main
wesley 5 个月前
父节点
当前提交
32e61b5e29
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      db/db_impl.cc

+ 2
- 0
db/db_impl.cc 查看文件

@ -904,6 +904,7 @@ Status DBImpl::FinishCompactionOutputFile(CompactionState* compact,
meta.number = compact->vtb_num;
meta.records_num = compact->vtable_builder->RecordNumber();
meta.table_size = compact->vtable_builder->FileSize();
compact->total_bytes += meta.table_size;
s = compact->vtable_builder->Finish();
delete compact->vtable_builder;
@ -916,6 +917,7 @@ Status DBImpl::FinishCompactionOutputFile(CompactionState* compact,
}
delete compact->vtb_file;
compact->vtb_file = nullptr;
vtable_manager_->AddVTable(meta);
}
if (s.ok() && current_entries > 0) {

||||||
x
 
000:0
正在加载...
取消
保存