未验证 提交 ee64c8d4 编写于 作者: G gukaifeng 提交者: GitHub

exchange the LOG locations of backup finished and failed (#1071)

上级 618f7e62
......@@ -382,12 +382,13 @@ bool Partition::RunBgsaveEngine() {
// Backup to tmp dir
rocksdb::Status s = bgsave_engine_->CreateNewBackup(info.path);
LOG(INFO) << partition_name_ << " create new backup finished.";
if (!s.ok()) {
LOG(WARNING) << partition_name_ << " create new backup failed :" << s.ToString();
return false;
}
LOG(INFO) << partition_name_ << " create new backup finished.";
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册