Add GetBucketInfo toStorageErr conversion (#19005)

Convert error to storageError since it is used for quorum calculations here: ff80cfd83d/cmd/peer-s3-client.go (L339)
This commit is contained in:
Klaus Post 2024-02-07 14:24:24 -08:00 committed by GitHub
parent d28bf71f25
commit 7e082f232e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@ import (
"time" "time"
"github.com/minio/madmin-go/v3" "github.com/minio/madmin-go/v3"
grid "github.com/minio/minio/internal/grid" "github.com/minio/minio/internal/grid"
xhttp "github.com/minio/minio/internal/http" xhttp "github.com/minio/minio/internal/http"
"github.com/minio/minio/internal/logger" "github.com/minio/minio/internal/logger"
"github.com/minio/minio/internal/rest" "github.com/minio/minio/internal/rest"
@ -400,7 +400,7 @@ func (client *remotePeerS3Client) GetBucketInfo(ctx context.Context, bucket stri
volInfo, err := headBucketHandler.Call(ctx, conn, mss) volInfo, err := headBucketHandler.Call(ctx, conn, mss)
if err != nil { if err != nil {
return BucketInfo{}, err return BucketInfo{}, toStorageErr(err)
} }
return BucketInfo{ return BucketInfo{