mirror of https://github.com/minio/minio.git
fix: add err when all bucket resync failed (#18401)
This commit is contained in:
parent
0924b34a17
commit
079b6c2b50
|
@ -5239,6 +5239,9 @@ func (c *SiteReplicationSys) startResync(ctx context.Context, objAPI ObjectLayer
|
|||
if len(res.Buckets) > 0 {
|
||||
res.ErrDetail = "partial failure in starting site resync"
|
||||
}
|
||||
if len(buckets) != 0 && len(res.Buckets) == len(buckets) {
|
||||
return res, fmt.Errorf("all buckets resync failed")
|
||||
}
|
||||
return res, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue