fix: on windows avoid ':' as part of the object name (#19907)

fixes #18865
avoid-colon
This commit is contained in:
Harshavardhana
2024-06-10 20:13:30 -07:00
committed by GitHub
parent 614981e566
commit 55aa431578
5 changed files with 16 additions and 14 deletions
+12
View File
@@ -80,6 +80,18 @@ const (
compMinIndexSize = 8 << 20
)
// getkeyeparator - returns the separator to be used for
// persisting on drive.
//
// - ":" is used on non-windows platforms
// - "_" is used on windows platforms
func getKeySeparator() string {
if runtime.GOOS == globalWindowsOSName {
return "_"
}
return ":"
}
// isMinioBucket returns true if given bucket is a MinIO internal
// bucket and false otherwise.
func isMinioMetaBucketName(bucket string) bool {