mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
fix: time() returned function not being called as expected in globalSync() (#17319)
This commit is contained in:
parent
817e85a3e0
commit
b8474295af
@ -340,6 +340,6 @@ func readDirWithOpts(dirPath string, opts readDirOpts) (entries []string, err er
|
||||
}
|
||||
|
||||
func globalSync() {
|
||||
defer globalOSMetrics.time(osMetricSync)
|
||||
defer globalOSMetrics.time(osMetricSync)()
|
||||
syscall.Sync()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user