mirror of
https://github.com/minio/minio.git
synced 2025-02-23 19:42:30 -05:00
fix: no resyncid when site-replication cancel (#18392)
This commit is contained in:
parent
57aaeafd2f
commit
c3e456e7e6
@ -5260,13 +5260,6 @@ func (c *SiteReplicationSys) cancelResync(ctx context.Context, objAPI ObjectLaye
|
||||
if err != nil {
|
||||
return res, err
|
||||
}
|
||||
switch rs.Status {
|
||||
case ResyncCanceled:
|
||||
return res, errSRResyncCanceled
|
||||
case ResyncCompleted, NoResync:
|
||||
return res, errSRNoResync
|
||||
}
|
||||
|
||||
res = madmin.SRResyncOpStatus{
|
||||
Status: rs.Status.String(),
|
||||
OpType: "cancel",
|
||||
|
Loading…
x
Reference in New Issue
Block a user