Reproduce multiple RangeComplete, improve cache write

This commit is contained in:
Dominik Werder
2021-05-27 20:08:33 +02:00
parent b1bed52ada
commit 5f1b8d6a36
3 changed files with 101 additions and 64 deletions

View File

@@ -426,9 +426,6 @@ impl ReadableFromFile for MinMaxAvgScalarBinBatch {
Ok(ReadPbv::new(file))
}
fn from_buf(buf: &[u8]) -> Result<Self, Error> {
let mut h = crc32fast::Hasher::new();
h.update(&buf);
info!("try to deserialize from buf len {} crc {}", buf.len(), h.finalize());
let dec: MinMaxAvgScalarBinBatch = serde_cbor::from_slice(&buf)?;
Ok(dec)
}