Skip to main content

upgrade

Function upgrade 

Source
pub fn upgrade(session_dir: &Path) -> Result<()>
Expand description

Bring the queues of session_dir up to “every line in one place”, once: a directory without the mark may hold queues an earlier release wrote, which are [compact]ed. Called before a queue of the directory is read or written. A new directory has no queue and only gets the mark.

One at a time per directory: a second caller that compacted after the first had finished would take the lines the first then queued, which are nowhere else, for an earlier release’s.