fix(site-replication): delete replicated buckets

This commit is contained in:
Jason Kossis
2026-07-21 13:22:41 -04:00
committed by GitHub
parent f1d2af698c
commit 9469dfa5b8
11 changed files with 270 additions and 81 deletions
+4 -2
View File
@@ -33,7 +33,7 @@ pub struct MakeBucketOptions {
}
/// Operation to perform on a bucket during site replication delete.
#[derive(Debug, Default, Clone, PartialEq)]
#[derive(Debug, Default, Clone, PartialEq, Serialize, Deserialize)]
pub enum SRBucketDeleteOp {
/// No operation.
#[default]
@@ -45,7 +45,7 @@ pub enum SRBucketDeleteOp {
}
/// Options for deleting a bucket.
#[derive(Debug, Default, Clone)]
#[derive(Debug, Default, Clone, Serialize, Deserialize)]
pub struct DeleteBucketOptions {
/// Skip acquiring namespace lock.
pub no_lock: bool,
@@ -53,6 +53,8 @@ pub struct DeleteBucketOptions {
pub no_recreate: bool,
/// Force deletion even if bucket is not empty.
pub force: bool,
/// Force deletion only after the local peer verifies the bucket is empty.
pub force_if_empty: bool,
/// Site replication delete operation.
pub srdelete_op: SRBucketDeleteOp,
}