mirror of
https://github.com/pgsty/minio.git
synced 2026-08-08 23:33:30 +03:00
move madmin to github.com/minio/madmin-go (#12239)
This commit is contained in:
@@ -26,7 +26,7 @@ import (
|
||||
"time"
|
||||
|
||||
ewma "github.com/VividCortex/ewma"
|
||||
trace "github.com/minio/minio/pkg/trace"
|
||||
"github.com/minio/madmin-go"
|
||||
)
|
||||
|
||||
//go:generate stringer -type=storageMetric -trimprefix=storageMetric $GOFILE
|
||||
@@ -607,13 +607,13 @@ func (p *xlStorageDiskIDCheck) ReadAll(ctx context.Context, volume string, path
|
||||
return p.storage.ReadAll(ctx, volume, path)
|
||||
}
|
||||
|
||||
func storageTrace(s storageMetric, startTime time.Time, duration time.Duration, path string) trace.Info {
|
||||
return trace.Info{
|
||||
TraceType: trace.Storage,
|
||||
func storageTrace(s storageMetric, startTime time.Time, duration time.Duration, path string) madmin.TraceInfo {
|
||||
return madmin.TraceInfo{
|
||||
TraceType: madmin.TraceStorage,
|
||||
Time: startTime,
|
||||
NodeName: globalLocalNodeName,
|
||||
FuncName: "storage." + s.String(),
|
||||
StorageStats: trace.StorageStats{
|
||||
StorageStats: madmin.TraceStorageStats{
|
||||
Duration: duration,
|
||||
Path: path,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user