resume heal from previous object instead of bucket after server restart (#13581)

This commit is contained in:
jiangfucheng 2021-11-05 15:10:41 -05:00 committed by GitHub
parent 520037e721
commit e1755275a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,7 +180,7 @@ func (er *erasureObjects) healErasureSet(ctx context.Context, buckets []BucketIn
// If we resume to the same bucket, forward to last known item.
if tracker.Bucket != "" {
if tracker.Bucket == bucket.Name {
forwardTo = tracker.Bucket
forwardTo = tracker.Object
} else {
// Reset to where last bucket ended if resuming.
tracker.resume()