fix(ecstore): require write quorum for metadata early stop (#4300)

This commit is contained in:
GatewayJ
2026-07-10 15:57:09 +08:00
committed by GitHub
parent 40cf94f243
commit a269f8df05
7 changed files with 1241 additions and 68 deletions
+1
View File
@@ -812,6 +812,7 @@ impl LocalDiskWrapper {
recursive: false,
immediate: false,
undo_write: false,
undo_delete: false,
old_data_dir: None,
},
)
File diff suppressed because it is too large Load Diff
+4
View File
@@ -883,6 +883,8 @@ pub struct DeleteOptions {
pub recursive: bool,
pub immediate: bool,
pub undo_write: bool,
#[serde(default)]
pub undo_delete: bool,
pub old_data_dir: Option<Uuid>,
}
@@ -1122,12 +1124,14 @@ mod tests {
recursive: true,
immediate: false,
undo_write: true,
undo_delete: false,
old_data_dir: Some(Uuid::new_v4()),
};
assert!(opts.recursive);
assert!(!opts.immediate);
assert!(opts.undo_write);
assert!(!opts.undo_delete);
assert!(opts.old_data_dir.is_some());
}