Signed-off-by: junxiang Mu <1948535941@qq.com>
This commit is contained in:
junxiang Mu
2024-10-22 09:33:11 +08:00
parent 76fb6775d1
commit 9ff243a7a9
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -22,6 +22,11 @@ pub const HEAL_UNKNOWN_SCAN: HealScanMode = 0;
pub const HEAL_NORMAL_SCAN: HealScanMode = 1;
pub const HEAL_DEEP_SCAN: HealScanMode = 2;
pub const HEAL_ITEM_METADATA: &str = "metadata";
pub const HEAL_ITEM_BUCKET: &str = "bucket";
pub const HEAL_ITEM_BUCKET_METADATA: &str = "bucket-metadata";
pub const HEAL_ITEM_OBJECT: &str = "object";
#[derive(Clone, Copy, Debug, Default)]
pub struct HealOpts {
pub recursive: bool,
+1 -1
View File
@@ -441,7 +441,7 @@ impl StorageAPI for Sets {
unimplemented!()
}
async fn heal_object(&self, bucket: &str, object: &str, version_id: &str, opts: &HealOpts) -> Result<HealResultItem> {
unimplemented!()
self.get_disks_by_key(object).heal_object(bucket, object, version_id, opts).await
}
async fn heal_objects(&self, bucket: &str, prefix: &str, opts: &HealOpts, func: HealObjectFn) -> Result<()> {
unimplemented!()