Skip to content

Commit

Permalink
feat: Add info log to wal replay
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldix committed Jan 6, 2025
1 parent d78756f commit 93fe6cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions influxdb3_wal/src/object_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ impl WalObjectStore {
Timestamp::new(wal_contents.max_timestamp_ns),
));

info!(
n_ops = %wal_contents.ops.len(),
min_timestamp_ns = %wal_contents.min_timestamp_ns,
max_timestamp_ns = %wal_contents.max_timestamp_ns,
wal_file_number = %wal_contents.wal_file_number,
"replaying WAL file"
);

match wal_contents.snapshot {
// This branch uses so much time
None => self.file_notifier.notify(wal_contents).await,
Expand Down

0 comments on commit 93fe6cf

Please sign in to comment.