1
0
mirror of https://github.com/minio/minio.git synced 2025-03-31 01:33:41 -04:00

log: Add a log when saving pool.bin fails ()

Co-authored-by: Anis Elleuch <anis@min.io>
This commit is contained in:
Anis Eleuch 2023-06-04 22:20:21 +01:00 committed by GitHub
parent 8030e12ba5
commit 1436858347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.
for _, eset := range pools {
for i, eset := range pools {
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
}
}