rotate

fun rotate()

Seals the active memtable and starts a new log.

Called automatically when the memtable reaches StoreOptions.memtableMaxBytes; exposed because tests and benchmarks need to reach the boundary deliberately rather than by writing 64 MiB of documents. A no-op when the active memtable is empty, so calling it in a loop does not litter the directory with logs.