mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
audit: Fix merrs and derrs object dangling message (#18714)
merrs and derrs are empty when a dangling object is deleted. Fix the bug and adds invalid-meta data for data blocks
This commit is contained in:
14
cmd/utils.go
14
cmd/utils.go
@@ -1273,3 +1273,17 @@ func stringsHasPrefixFold(s, prefix string) bool {
|
||||
func ptr[T any](a T) *T {
|
||||
return &a
|
||||
}
|
||||
|
||||
func max(a, b int) int {
|
||||
if a > b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func min(a, b int) int {
|
||||
if a < b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user