mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Include tier name in MinIO/S3 target user-agent (#16630)
This commit is contained in:
committed by
GitHub
parent
d136ac0596
commit
a1dd08f2e6
@@ -18,6 +18,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/url"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -33,7 +34,7 @@ type warmBackendMinIO struct {
|
||||
|
||||
var _ WarmBackend = (*warmBackendMinIO)(nil)
|
||||
|
||||
func newWarmBackendMinIO(conf madmin.TierMinIO) (*warmBackendMinIO, error) {
|
||||
func newWarmBackendMinIO(conf madmin.TierMinIO, tier string) (*warmBackendMinIO, error) {
|
||||
u, err := url.Parse(conf.Endpoint)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -53,7 +54,7 @@ func newWarmBackendMinIO(conf madmin.TierMinIO) (*warmBackendMinIO, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
client.SetAppInfo("minio-tier-target", ReleaseTag)
|
||||
client.SetAppInfo(fmt.Sprintf("minio-tier-%s", tier), ReleaseTag)
|
||||
|
||||
core := &minio.Core{Client: client}
|
||||
return &warmBackendMinIO{
|
||||
|
||||
Reference in New Issue
Block a user