mirror of
https://github.com/minio/minio.git
synced 2025-02-24 03:49:12 -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 {
|
if err != nil {
|
||||||
return res, err
|
return res, err
|
||||||
}
|
}
|
||||||
switch rs.Status {
|
|
||||||
case ResyncCanceled:
|
|
||||||
return res, errSRResyncCanceled
|
|
||||||
case ResyncCompleted, NoResync:
|
|
||||||
return res, errSRNoResync
|
|
||||||
}
|
|
||||||
|
|
||||||
res = madmin.SRResyncOpStatus{
|
res = madmin.SRResyncOpStatus{
|
||||||
Status: rs.Status.String(),
|
Status: rs.Status.String(),
|
||||||
OpType: "cancel",
|
OpType: "cancel",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user