From a8368f58464ea47043d0e8117952c87e2e53dec9 Mon Sep 17 00:00:00 2001 From: "peng.xu" Date: Mon, 15 Jul 2019 18:50:56 +0800 Subject: [PATCH] add more logging for bg_error break Former-commit-id: 3d3ddbe93c0770968d0ac4f86b82c0a94c0fa341 --- cpp/src/db/DBImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/db/DBImpl.cpp b/cpp/src/db/DBImpl.cpp index baee3a84ab..8638a0da41 100644 --- a/cpp/src/db/DBImpl.cpp +++ b/cpp/src/db/DBImpl.cpp @@ -395,7 +395,7 @@ void DBImpl::BackgroundCompaction(std::set 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; }