fix: loadStatsFromDisk() should return nil for configNotFound (#17217)

This commit is contained in:
jiuker 2023-05-17 03:23:38 +08:00 committed by GitHub
parent 9a799065b3
commit 413549bcf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3098,7 +3098,7 @@ func (p *ReplicationPool) loadStatsFromDisk() (rs map[string]BucketReplicationSt
data, err := readConfig(p.ctx, p.objLayer, getReplicationStatsPath())
if err != nil {
if !errors.Is(err, errConfigNotFound) {
if errors.Is(err, errConfigNotFound) {
return rs, nil
}
return rs, err