add logging, more conservative reset

This commit is contained in:
Rob Walker
2018-08-16 18:00:53 -07:00
parent 877920e61b
commit 5dbecd6b6b
2 changed files with 21 additions and 5 deletions

View File

@ -165,6 +165,9 @@ impl Reset for Blob {
fn reset(&mut self) {
self.meta = Meta::default();
self.data[..BLOB_HEADER_SIZE].copy_from_slice(&[0u8; BLOB_HEADER_SIZE]);
for i in 0..BLOB_SIZE {
self.data[i] = 0;
}
}
}