Save bootstrap trace events in a circular buffer (#16823)

This commit is contained in:
Krishnan Parthasarathi authored and GitHub committed 2023-03-17 16:01:03 -07:00
1 parent 280442e533
commit 31fba6f434
5 files changed
+189

No files matched your search

+2
View File
@@ -352,6 +352,8 @@ func configRetriableErrors(err error) bool {
}
func bootstrapTrace(msg string) {
globalBootstrapTracer.Record(msg)
if globalTrace.NumSubscribers(madmin.TraceBootstrap) == 0 {
return
}