Skip to content

Commit

Permalink
Update loglet_id when copying previous loglet configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tillrohrmann committed Oct 15, 2024
1 parent 6758c4e commit 2b7acbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/admin/src/cluster_controller/logs_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ fn build_new_replicated_loglet_configuration(
})
} else if let Some(sequencer) = log_servers.iter().choose(&mut rng) {
previous_configuration.cloned().map(|mut configuration| {
configuration.loglet_id = rng.next_u64().into();
configuration.sequencer = **sequencer;
configuration
})
Expand Down

0 comments on commit 2b7acbb

Please sign in to comment.