fix(heal): defer scoped repair on suspended pools (#5876)

This commit is contained in:
cxymds
2026-08-09 11:50:17 +08:00
committed by GitHub
parent 10c7476883
commit 47369ff027
4 changed files with 227 additions and 2 deletions
+1 -1
View File
@@ -286,7 +286,7 @@ impl Sets {
self.get_disks(self.get_hashed_set_index(key))
}
fn get_disks_for_heal_object(&self, key: &str, opts: &HealOpts) -> Result<Arc<SetDisks>> {
pub(crate) fn get_disks_for_heal_object(&self, key: &str, opts: &HealOpts) -> Result<Arc<SetDisks>> {
match opts.set {
Some(set_idx) => self.disk_set.get(set_idx).cloned().ok_or_else(|| {
StorageError::InvalidArgument(