Skip to content

Commit

Permalink
Modify logging for online compaction failure handling
Browse files Browse the repository at this point in the history
  • Loading branch information
umegane committed Sep 25, 2024
1 parent 85736fc commit 1909d09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/limestone/datastore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,13 +455,13 @@ void datastore::online_compaction_worker() {
while (!stop_online_compaction_worker_.load()) {
if (boost::filesystem::exists(start_file)) {
if (!boost::filesystem::remove(start_file)) {
VLOG(log_error) << "failed to remove file: " << start_file.string();
LOG_LP(ERROR) << "failed to remove file: " << start_file.string();
return;
}
try {
compact_with_online();
} catch (const limestone_exception& e) {
VLOG(log_error) << "failed to compact with online: " << e.what();
LOG_LP(ERROR) << "failed to compact with online: " << e.what();
}
}
cv_online_compaction_worker_.wait_for(lock, std::chrono::seconds(1), [this]() {
Expand Down

0 comments on commit 1909d09

Please sign in to comment.