Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/storage-controller/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ where
}
}

fn update_parameters(&mut self, mut config_params: StorageParameters) {
fn update_parameters(&mut self, config_params: StorageParameters) {
// We serialize the dyncfg updates in StorageParameters, but configure
// persist separately.
if let Some(updates) = config_params.dyncfg_updates.take() {
if let Some(updates) = &config_params.dyncfg_updates {
updates.apply(self.persist.cfg());
}

Expand Down
4 changes: 2 additions & 2 deletions src/storage/src/storage_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1196,13 +1196,13 @@ impl StorageState {
match cmd {
StorageCommand::CreateTimely { .. } => panic!("CreateTimely must be captured before"),
StorageCommand::InitializationComplete => (),
StorageCommand::UpdateConfiguration(mut params) => {
StorageCommand::UpdateConfiguration(params) => {
// These can be done from all workers safely.
tracing::info!("Applying configuration update: {params:?}");

// We serialize the dyncfg updates in StorageParameters, but configure
// persist separately.
if let Some(updates) = params.dyncfg_updates.take() {
if let Some(updates) = &params.dyncfg_updates {
updates.apply(self.persist_clients.cfg());
}

Expand Down