add crash protection from backend modifications (#16846)

This commit is contained in:
Harshavardhana
2023-03-20 09:08:42 -07:00
committed by GitHub
parent 3b5dbf9046
commit 6c11dbffd5
6 changed files with 61 additions and 29 deletions

View File

@@ -78,7 +78,7 @@ func (bs *bootstrapTracer) Record(msg string) {
func (bs *bootstrapTracer) Events() []madmin.TraceInfo {
traceInfo := make([]madmin.TraceInfo, 0, bootstrapMsgsLimit)
// Add all messages in order
addAll := func(info []bootstrapInfo) {
for _, msg := range info {