Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
kb1ns committed Dec 14, 2023
1 parent f9ce6ad commit a7b2472
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v0.7.0-rc.10
# v0.7.0-rc.11

- online test of migration

Expand Down
1 change: 1 addition & 0 deletions engine/src/input/sequencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ fn ensure_fully_loaded(init_at: u64, tx: Sender<Event>) -> anyhow::Result<u64> {
let event = input
.try_into()
.map_err(|_| anyhow::anyhow!("id {} is invalid", current_id))?;
log::info!("loading historic event {}", current_id);
// LIMIT|CANCEL(session=0, req_id=0) represent historic events, shouldn't reply
match C.dry_run {
Some(n) if n >= current_id => tx.send(event)?,
Expand Down
2 changes: 2 additions & 0 deletions engine/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ mod v1_to_v2 {
.open(output_file)
.unwrap();
data.into_raw(file).unwrap();
log::info!("coredump file migrated");
if !ignore_sequences {
let mut cursor = event_id;
log::info!("starting to migrate event from {}", cursor);
loop {
let new = migrate_sequences(&pool, cursor, 1000).await;
log::info!("migrating sequences {} to {}", cursor, new);
Expand Down

0 comments on commit a7b2472

Please sign in to comment.