diff --git a/cmd/os_unix.go b/cmd/os_unix.go index 79f98479f..fa04c79a5 100644 --- a/cmd/os_unix.go +++ b/cmd/os_unix.go @@ -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() }