fix(storage): make acknowledged writes durable across power loss (#4221)

This commit is contained in:
Zhengchao An
2026-07-03 11:57:05 +08:00
committed by GitHub
parent 7329816ed7
commit 19c21b3522
6 changed files with 346 additions and 4 deletions
+3
View File
@@ -201,6 +201,9 @@ pub(crate) async fn run_startup_shutdown_sequence(
console_shutdown_handle.shutdown().await;
}
shutdown_optional_runtime_services(optional_runtime_shutdowns).await;
// The data plane is drained: record this shutdown as clean so the next
// startup skips the unclean-restart erasure-set heal.
rustfs_heal::heal::clear_unclean_shutdown_markers().await;
state_manager.update(ServiceState::Stopped);
info!(
target: "rustfs::main::handle_shutdown",