fix: no resyncid when site-replication cancel (#18392)

This commit is contained in:
jiuker 2023-11-06 17:53:31 +08:00 committed by GitHub
parent 57aaeafd2f
commit c3e456e7e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",