Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonip committed Oct 11, 2024
1 parent 503f8cc commit b18d34e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/apm-server/sampling/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ const (
shutdownGracePeriod = 5 * time.Second
)

var gcMutex sync.Mutex // global mutex to protect gc from running concurrently in a hot reload
var (
// gcMutex is a global mutex to protect gc from running concurrently when 2 TBS processors are active during a hot reload
gcMutex sync.Mutex
)

// Processor is a tail-sampling event processor.
type Processor struct {
Expand Down

0 comments on commit b18d34e

Please sign in to comment.