mirror of
https://github.com/minio/minio.git
synced 2026-06-04 10:13:48 +08:00
fix: time() returned function not being called as expected in globalSync() (#17319)
This commit is contained in:
+1
-1
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user