From 3d6b88a60e1aabbf9baa6580db8a426f52f2c16a Mon Sep 17 00:00:00 2001 From: drivebyer Date: Wed, 14 Jun 2023 02:04:50 +0800 Subject: [PATCH] fix: syscall to record time on non-linux (#17383) --- cmd/os_other.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/os_other.go b/cmd/os_other.go index 9d0bd8891..15129bfb8 100644 --- a/cmd/os_other.go +++ b/cmd/os_other.go @@ -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() }