-spec flush(tab()) -> ok.
Persist all records that got dirtied prior to this call to WAL.
Flush is atomic, meaning either all or none dirty operations are restored. However, if multiple processes perform unsynchronized dirty writes and flushes in parallel, data can be restored partially.