mirror of
https://github.com/minio/minio.git
synced 2025-04-16 17:00:07 -04:00
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 {
|
if len(res.Buckets) > 0 {
|
||||||
res.ErrDetail = "partial failure in starting site resync"
|
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
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user