fix: syscall to record time on non-linux (#17383)

This commit is contained in:
drivebyer 2023-06-14 02:04:50 +08:00 committed by GitHub
parent 26a0803388
commit 3d6b88a60e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -157,6 +157,6 @@ func readDirWithOpts(dirPath string, opts readDirOpts) (entries []string, err er
func globalSync() {
// no-op not sure about plan9/solaris support for syscall support
defer globalOSMetrics.time(osMetricSync)
defer globalOSMetrics.time(osMetricSync)()
syscall.Sync()
}