Skip to content

Commit

Permalink
dbpath instead of dbname (OpenAtomFoundation#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokenice0415 authored May 25, 2023
1 parent 64851a6 commit ebeac38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/src/db_checkpoint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Status DBCheckpointImpl::CreateCheckpointWithFiles(const std::string& checkpoint
// make wal_dir valid in that case
std::string wal_dir = db_->GetOptions().wal_dir;
if (wal_dir.empty()) {
wal_dir = db_->GetName() + "/";
wal_dir = db_->GetOptions().db_paths[0].path;
}

size_t wal_size = live_wal_files.size();
Expand Down

0 comments on commit ebeac38

Please sign in to comment.