Skip to content

Commit

Permalink
Merge branch 'unstable' into inspect-writebatch-tool
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU authored Nov 4, 2022
2 parents 976a616 + 06e029b commit e3d22e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/config/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,9 @@ void Config::initFieldCallback() {
previous_backup = std::move(backup_dir);
backup_dir = v;
}
if (!previous_backup.empty()) {
LOG(INFO) << "change backup dir from " << backup_dir << " to " << v;
if (!previous_backup.empty() && srv != nullptr && !srv->IsLoading()) {
// LOG(INFO) should be called after log is initialized and server is loaded.
LOG(INFO) << "change backup dir from " << previous_backup << " to " << v;
}
return Status::OK();
}},
Expand Down

0 comments on commit e3d22e3

Please sign in to comment.