Skip to content

Commit 415df4d

Browse files
authored
Log namespace id in the checkpoint logs (#1387)
1 parent 4bbfda4 commit 415df4d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

libsql-server/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,11 @@ where
191191
}
192192
}
193193

194+
#[tracing::instrument(skip(connection_maker))]
194195
async fn run_periodic_checkpoint<C>(
195196
connection_maker: Arc<C>,
196197
period: Duration,
198+
namespace_name: NamespaceName,
197199
) -> anyhow::Result<()>
198200
where
199201
C: MakeConnection,

libsql-server/src/namespace/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ impl Namespace {
440440
join_set.spawn(run_periodic_checkpoint(
441441
connection_maker.clone(),
442442
checkpoint_interval,
443+
name.clone(),
443444
));
444445
}
445446

0 commit comments

Comments
 (0)