Skip to content

Commit

Permalink
Add trace logs to write_epoch_to_file()
Browse files Browse the repository at this point in the history
  • Loading branch information
umegane committed Dec 17, 2024
1 parent df06da1 commit 9405a50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/limestone/datastore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ static void write_epoch_to_file_internal(const std::string& file_path, epoch_id_
}

void datastore::write_epoch_to_file(epoch_id_type epoch_id) {
VLOG_LP(log_info) << "write_epoch_to_file() with epoch_id=" << epoch_id;
if (++epoch_write_counter >= max_entries_in_epoch_file) {
write_epoch_to_file_internal(tmp_epoch_file_path_.string(), epoch_id, file_write_mode::overwrite);

Expand All @@ -169,6 +170,7 @@ void datastore::write_epoch_to_file(epoch_id_type epoch_id) {
} else {
write_epoch_to_file_internal(epoch_file_path_.string(), epoch_id, file_write_mode::append);
}
VLOG_LP(log_info) << "end write_epoch_to_file() with epoch_id=" << epoch_id;
}


Expand Down

0 comments on commit 9405a50

Please sign in to comment.