Skip to content

Commit

Permalink
Add temporary modifications for issue investigation
Browse files Browse the repository at this point in the history
  • Loading branch information
umegane committed Dec 18, 2024
1 parent 62492c7 commit 2e49d7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/limestone/datastore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ enum class file_write_mode {
};

static void write_epoch_to_file_internal(const std::string& file_path, epoch_id_type epoch_id, file_write_mode mode) {
std::this_thread::sleep_for(std::chrono::milliseconds(100));
const char* fopen_mode = (mode == file_write_mode::append) ? "a" : "w";
std::unique_ptr<FILE, void (*)(FILE*)> file_ptr(fopen(file_path.c_str(), fopen_mode), [](FILE* fp) {
if (fp) {
Expand Down
2 changes: 1 addition & 1 deletion src/limestone/logging_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ inline std::string getThreadName() {


// Log level for TRACE logging
constexpr int TRACE_LOG_LEVEL = 50;
constexpr int TRACE_LOG_LEVEL = 30;

// Common logging macro for TRACE operations
// NOLINTBEGIN(cppcoreguidelines-macro-usage)
Expand Down

0 comments on commit 2e49d7e

Please sign in to comment.