Skip to content

log: simplify the buffering count for flusherCh in bufferSink #72460

@knz

Description

@knz

This is follow up work to #70330.

The current bufferSink flusher uses a manually maintained atomic counter nInFlight to track the number of messages buffered.
This could be advantageously simplified by a native buffered Go channel, with a select on blocked writes to check when the channel is full.

Jira issue: CRDB-11168

Metadata

Metadata

Assignees

Labels

A-loggingIn and around the logging infrastructure.C-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions