mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Disable Rename2 metrics on non-linux (#18970)
Logging a call that always fails is pointless.
This commit is contained in:
parent
ba975ca320
commit
e046eb1d17
@ -21,13 +21,11 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"os"
|
||||
)
|
||||
|
||||
// Rename2 is not implemented in a non linux environment
|
||||
func Rename2(src, dst string) (err error) {
|
||||
defer updateOSMetrics(osMetricRename2, src, dst)(errors.New("not implemented, skipping"))
|
||||
return errSkipFile
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user