Skip to content

Commit

Permalink
fix ut & not copy wal file
Browse files Browse the repository at this point in the history
  • Loading branch information
yapple committed Jun 30, 2022
1 parent a473a12 commit b905041
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions db/db_filesnapshot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ Status DBImpl::FakeFlush(std::vector<std::string>& ret) {
cfd->Unref();
}
mutex_.Unlock();
TEST_SYNC_POINT("DBImpl::GetLiveFiles:1");
TEST_SYNC_POINT("DBImpl::GetLiveFiles:2");

if (status.ok()) {
for (auto iter : version_edits_) {
Expand Down
2 changes: 1 addition & 1 deletion utilities/checkpoint/checkpoint_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ Status CheckpointImpl::CreateCustomCheckpoint(
db_->FlushWAL(false /* sync */);
}
// if we have more than one column family, we need to also get WAL files
if (s.ok()) {
if (s.ok() && !db_options.check_point_fake_flush ) {
s = db_->GetSortedWalFiles(live_wal_files);
}
if (!s.ok()) {
Expand Down

0 comments on commit b905041

Please sign in to comment.