fix(ecstore): distinguish active ILM target cleanup

This commit is contained in:
overtrue
2026-08-22 12:10:41 +08:00
parent 2a4021c3c5
commit 2f048466b4
3 changed files with 35 additions and 12 deletions
@@ -439,7 +439,7 @@ async fn process_committed_tier_delete_journal_entry(api: Arc<ECStore>, je: &Jen
.record_durable_ilm_decommission_terminal_target_pools(&path, &data)
.await
.map_err(std::io::Error::other)?;
if !target_pool_indices.is_empty() {
if let Some(target_pool_indices) = target_pool_indices {
for target_pool_idx in target_pool_indices {
match config_boundary::delete_config(api.pools[target_pool_idx].clone(), &path).await {
Ok(()) | Err(Error::ConfigNotFound) => {}