flush

fun flush()

Seals the active memtable and writes every sealed one out as a segment.

A real barrier: it returns when the segments are on the platter and the manifest names them, whether or not maintenance runs in the background. It does not compact.