diff --git a/src/backup/dynamic_index.rs b/src/backup/dynamic_index.rs index eb261272..ef6b3178 100644 --- a/src/backup/dynamic_index.rs +++ b/src/backup/dynamic_index.rs @@ -509,8 +509,8 @@ impl DynamicIndexWriter { csum.update(digest); } - self.writer.write(offset_le)?; - self.writer.write(digest)?; + self.writer.write_all(offset_le)?; + self.writer.write_all(digest)?; Ok(()) } }