mirror of
				https://github.com/minio/minio.git
				synced 2025-10-30 00:05:02 -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 | ||||
| 
 | ||||
| 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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user