1
0
mirror of https://github.com/minio/minio.git synced 2025-04-11 23:12:12 -04:00

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

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

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