mirror of
https://github.com/minio/minio.git
synced 2025-03-31 09:43:43 -04: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
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Rename2 is not implemented in a non linux environment
|
// Rename2 is not implemented in a non linux environment
|
||||||
func Rename2(src, dst string) (err error) {
|
func Rename2(src, dst string) (err error) {
|
||||||
defer updateOSMetrics(osMetricRename2, src, dst)(errors.New("not implemented, skipping"))
|
|
||||||
return errSkipFile
|
return errSkipFile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user