mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
hold on to batch job stats till cleanup (#20480)
This PR also fixes job stats not available after restart
This commit is contained in:
@@ -91,9 +91,6 @@ func init() {
|
||||
logger.Init(GOPATH, GOROOT)
|
||||
logger.RegisterError(config.FmtError)
|
||||
|
||||
globalBatchJobsMetrics = batchJobMetrics{metrics: make(map[string]*batchJobInfo)}
|
||||
go globalBatchJobsMetrics.purgeJobMetrics()
|
||||
|
||||
t, _ := minioVersionToReleaseTime(Version)
|
||||
if !t.IsZero() {
|
||||
globalVersionUnix = uint64(t.Unix())
|
||||
|
||||
Reference in New Issue
Block a user