fix: time() returned function not being called as expected in globalSync() (#17319)

This commit is contained in:
drivebyer 2023-06-01 00:40:23 +08:00 committed by GitHub
parent 817e85a3e0
commit b8474295af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
}