Fix writing V9 footer

This commit is contained in:
Truman Kilen 2023-02-07 22:48:44 -06:00
parent a69b2e44dd
commit 159eb32134

View file

@ -81,6 +81,9 @@ impl Footer {
writer.write_u64::<LE>(self.index_offset)?; writer.write_u64::<LE>(self.index_offset)?;
writer.write_u64::<LE>(self.index_size)?; writer.write_u64::<LE>(self.index_size)?;
writer.write_all(&self.hash)?; writer.write_all(&self.hash)?;
if self.version_major == VersionMajor::FrozenIndex {
writer.write_bool(self.frozen)?;
}
let algo_size = match self.version { let algo_size = match self.version {
ver if ver < Version::V8A => 0, ver if ver < Version::V8A => 0,
ver if ver < Version::V8B => 4, ver if ver < Version::V8B => 4,