mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
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:
parent
d28bf71f25
commit
7e082f232e
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user