Bläddra i källkod

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

main
wesley 5 månader sedan
förälder
incheckning
32e61b5e29
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. +2
    -0
      db/db_impl.cc

+ 2
- 0
db/db_impl.cc Visa fil

@ -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
Laddar…
Avbryt
Spara