mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Save bootstrap trace events in a circular buffer (#16823)
This commit is contained in:
committed by
GitHub
parent
280442e533
commit
31fba6f434
@@ -1526,6 +1526,11 @@ func (a adminAPIHandlers) TraceHandler(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
// Publish bootstrap events that have already occurred before client could subscribe.
|
||||
if traceOpts.TraceTypes().Contains(madmin.TraceBootstrap) {
|
||||
go globalBootstrapTracer.Publish(ctx, globalTrace)
|
||||
}
|
||||
|
||||
for _, peer := range peers {
|
||||
if peer == nil {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user