diff --git a/src/limestone/datastore.cpp b/src/limestone/datastore.cpp index 954b1ff..3f237a0 100644 --- a/src/limestone/datastore.cpp +++ b/src/limestone/datastore.cpp @@ -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_ptr(fopen(file_path.c_str(), fopen_mode), [](FILE* fp) { if (fp) { diff --git a/src/limestone/logging_helper.h b/src/limestone/logging_helper.h index 338ade9..d9493cc 100644 --- a/src/limestone/logging_helper.h +++ b/src/limestone/logging_helper.h @@ -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)