Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
yapple committed Jul 1, 2022
1 parent 535604c commit 591fedf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions db/db_filesnapshot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ Status DBImpl::UndoFakeFlush() {
if (iter == version_edits_.end()) continue;
VersionEdit* edit = &iter->second;
VersionEdit edit_del;
for (auto f : edit->GetNewFiles()) {
edit_del.DeleteFile(0, f.second.fd.GetNumber());
}
edit_del.set_check_point(true);
// for (auto f : edit->GetNewFiles()) {
// edit_del.DeleteFile(0, f.second.fd.GetNumber());
// }
// edit_del.set_check_point(true);
mutex_.Lock();
status = versions_->LogAndApply(cfd, *cfd->GetLatestMutableCFOptions(),
&edit_del, &mutex_, nullptr, true);
Expand Down

0 comments on commit 591fedf

Please sign in to comment.