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

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