Skip to content

Commit

Permalink
fix check_point file not found
Browse files Browse the repository at this point in the history
  • Loading branch information
yapple committed Jun 29, 2022
1 parent 4445935 commit f9ac9d1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion db/db_filesnapshot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ Status DBImpl::FakeFlush(std::vector<std::string>& ret) {
VersionEdit* edit = &iter.second;
int cf_id = iter.first;
for (auto f : edit->GetNewFiles()) {
ret.push_back(MakeTableFileName("", f.second.fd.GetNumber()));
ret.push_back(MakeTableFileName(versions_->GetColumnFamilySet()
->GetColumnFamily(cf_id)
->ioptions()
->cf_paths[0]
.path,
f.second.fd.GetNumber()));
}
}
}
Expand Down

0 comments on commit f9ac9d1

Please sign in to comment.