Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: hulk <hulk.website@gmail.com>
  • Loading branch information
ShooterIT and git-hulk authored Mar 20, 2021
1 parent a84174a commit a0c6b18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/replication.cc
Original file line number Diff line number Diff line change
Expand Up @@ -606,12 +606,12 @@ ReplicationThread::CBState ReplicationThread::fullSyncReadCB(bufferevent *bev,
auto s = Engine::Storage::ReplDataManager::CleanInvalidFiles(
self->storage_, target_dir, need_files);
if (!s.IsOK()) {
LOG(WARNING) << "[replication] Fail to clean up invalid files of old checkpoint,"
LOG(WARNING) << "[replication] Failed to clean up invalid files of the old checkpoint,"
<< " error: " << s.Msg();
LOG(WARNING) << "[replication] Try to clean all checkpoint files";
auto s = rocksdb::DestroyDB(target_dir, rocksdb::Options());
if (!s.ok()) {
LOG(WARNING) << "[replication] Fail to clean all checkpoint files, error: "
LOG(WARNING) << "[replication] Failed to clean all checkpoint files, error: "
<< s.ToString();
}
}
Expand Down

0 comments on commit a0c6b18

Please sign in to comment.