Module migrate_v0_to_v1

Source

Structsยง

MetadataV0 ๐Ÿ”’

Functionsยง

init_mmap ๐Ÿ”’
Initialize a read-only mmap
maybe_migrate
If metadata.bin is exactly the old size, rename to .bin.old, mmap it as MetadataV0, then create a fresh v1 file and copy all fields except the deprecated u32. Returns a bool indicating whether a migration was performed or not.