Revert shred fs (#9712)

* Revert "Untar is called for shred archives that do not exist. (#9565)"

This reverts commit 729cb5eec6.

* Revert "Dont insert shred payload into rocksdb (#9366)"

This reverts commit 5ed39de8c5.
This commit is contained in:
sakridge
2020-04-24 15:04:23 -07:00
committed by GitHub
parent 50f1ec0374
commit fa20963b93
13 changed files with 324 additions and 506 deletions

File diff suppressed because it is too large Load Diff

View File

@ -43,7 +43,7 @@ pub struct Index {
#[derive(Clone, Debug, Default, Deserialize, Serialize, PartialEq)]
pub struct ShredIndex {
/// Map representing presence/absence of shreds
pub index: BTreeSet<u64>,
index: BTreeSet<u64>,
}
#[derive(Clone, Copy, Debug, Default, Deserialize, Serialize, Eq, PartialEq)]

View File

@ -206,9 +206,6 @@ fn is_valid_genesis_archive_entry(parts: &[&str], kind: tar::EntryType) -> bool
(["rocksdb"], Directory) => true,
(["rocksdb", ..], GNUSparse) => true,
(["rocksdb", ..], Regular) => true,
(["shreds", ..], Directory) => true,
(["shreds", ..], GNUSparse) => true,
(["shreds", ..], Regular) => true,
_ => false,
}
}