Skip to main content

to_gzip

Function to_gzip 

Source
pub fn to_gzip<S: Storage>(storage: &S) -> Result<Migrated, MigrationFailure>
Expand description

Rewrite storage’s revs from zstd to gzip, re-stamp the rows that name them, and refresh the projection so its stamp names the head as it now stands.

Each rev lands under its new name before the old one is removed, and the manifest is rewritten only once every rev has: a run that stops halfway leaves a container whose revs are partly converted and whose rows still stamp the zstd bytes, which the next run finishes.

§Errors

MigrationFailure — the manifest could not be read or does not verify, a rev is missing or is not zstd, or a write did not land.