mirror of https://github.com/minio/minio.git
log: Add a log when saving pool.bin fails (#17338)
Co-authored-by: Anis Elleuch <anis@min.io>
This commit is contained in:
parent
8030e12ba5
commit
1436858347
|
@ -417,8 +417,9 @@ func (p poolMeta) save(ctx context.Context, pools []*erasureSets) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Saves on all pools to make sure decommissioning of first pool is allowed.
|
// Saves on all pools to make sure decommissioning of first pool is allowed.
|
||||||
for _, eset := range pools {
|
for i, eset := range pools {
|
||||||
if err = saveConfig(ctx, eset, poolMetaName, buf); err != nil {
|
if err = saveConfig(ctx, eset, poolMetaName, buf); err != nil {
|
||||||
|
logger.LogIf(ctx, fmt.Errorf("saving pool.bin for pool index %d failed with: %v", i, err))
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue