process compressed block when listing all files
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
Trinity Pointard 2021-12-14 18:20:33 +01:00
parent a51f671d86
commit d5d75fb4fa
2 changed files with 2 additions and 1 deletions

View file

@ -23,7 +23,7 @@ arc-swap = "1.0"
hex = "0.4"
log = "0.4"
rand = "0.8"
zstd = "0.9"
zstd = { version = "0.9", default-features = false }
sled = "0.34"

View file

@ -697,6 +697,7 @@ impl BlockManager {
};
let ent_type = data_dir_ent.file_type().await?;
let name = name.strip_suffix(".zst").unwrap_or(&name);
if name.len() == 2 && hex::decode(&name).is_ok() && ent_type.is_dir() {
state = self
.for_each_file_rec(&data_dir_ent.path(), state, f, must_exit)