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:
Anis Eleuch
2023-12-27 22:27:04 -08:00
committed by GitHub
parent fbd8dfe60f
commit 8a0ba093dd
4 changed files with 50 additions and 28 deletions

View File

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