mirror of
https://github.com/minio/minio.git
synced 2025-04-28 05:38:00 -04:00
fix: loadStatsFromDisk() should return nil for configNotFound (#17217)
This commit is contained in:
parent
9a799065b3
commit
413549bcf5
@ -3098,7 +3098,7 @@ func (p *ReplicationPool) loadStatsFromDisk() (rs map[string]BucketReplicationSt
|
|||||||
|
|
||||||
data, err := readConfig(p.ctx, p.objLayer, getReplicationStatsPath())
|
data, err := readConfig(p.ctx, p.objLayer, getReplicationStatsPath())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if !errors.Is(err, errConfigNotFound) {
|
if errors.Is(err, errConfigNotFound) {
|
||||||
return rs, nil
|
return rs, nil
|
||||||
}
|
}
|
||||||
return rs, err
|
return rs, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user