Skip to main content

WRITE

Static WRITE 

Source
static WRITE: Mutex<()>
Expand description

One append at a time.

Every connection’s batch shares one file, and a rotation is a rename: two appends interleaving would race each other’s rename and split a record across the roll. The lock covers the blocking pool’s own callers too.