Dont insert shred payload into rocksdb (#9366)

automerge
This commit is contained in:
anatoly yakovenko
2020-04-16 18:20:55 -07:00
committed by GitHub
parent 66abe45ea1
commit 5ed39de8c5
13 changed files with 501 additions and 322 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
index: BTreeSet<u64>,
pub index: BTreeSet<u64>,
}
#[derive(Clone, Copy, Debug, Default, Deserialize, Serialize, Eq, PartialEq)]

View File

@ -206,6 +206,9 @@ 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,
}
}