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

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
1 changed files with 2 additions and 1 deletions

View File

@ -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
} }
} }