提交 9c2f9c97 编写于 作者: P peng.xu

add more logging for bg_error break


Former-commit-id: 9244455cfa730ab77b935142ca9860547f74eaa4
上级 46c14bb3
......@@ -395,7 +395,7 @@ void DBImpl::BackgroundCompaction(std::set<std::string> table_ids) {
for (auto& table_id : table_ids) {
status = BackgroundMergeFiles(table_id);
if (!status.ok()) {
ENGINE_LOG_ERROR << "BGERROR found during merge files!";
ENGINE_LOG_ERROR << "BGERROR found during merge files: " << status.ToString();
bg_error_ = status;
return;
}
......@@ -540,7 +540,7 @@ void DBImpl::BackgroundBuildIndex() {
for (auto& file : to_index_files) {
status = BuildIndex(file);
if (!status.ok()) {
ENGINE_LOG_ERROR << "BGERROR found during build index!";
ENGINE_LOG_ERROR << "BGERROR found during build index: " << status.ToString();
bg_error_ = status;
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册