Disable Rename2 metrics on non-linux (#18970)

Logging a call that always fails is pointless.
This commit is contained in:
Klaus Post 2024-02-05 10:48:14 -08:00 committed by GitHub
parent ba975ca320
commit e046eb1d17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}