fix: siteReplicationSys.startResync return no buckets return if error (#18374)

This commit is contained in:
jiuker 2023-11-03 07:00:03 +08:00 committed by GitHub
parent f6e581ce54
commit 8a56af439c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5234,6 +5234,7 @@ func (c *SiteReplicationSys) startResync(ctx context.Context, objAPI ObjectLayer
Status: ResyncStarted.String(),
OpType: "start",
ResyncID: rs.ResyncID,
Buckets: res.Buckets,
}
if len(res.Buckets) > 0 {
res.ErrDetail = "partial failure in starting site resync"