Fix repair (#3581)

Add DetachedHeads repair protocol

Add DetachedHeads repair test

Repair starting from root
This commit is contained in:
carllin
2019-04-06 19:41:22 -07:00
committed by GitHub
parent 03da63b41b
commit 20aa4434e2
9 changed files with 343 additions and 319 deletions

View File

@ -100,8 +100,8 @@ impl Column<Kvs> for cf::Data {
}
}
impl Column<Kvs> for cf::DetachedHeads {
const NAME: &'static str = super::DETACHED_HEADS_CF;
impl Column<Kvs> for cf::Orphans {
const NAME: &'static str = super::ORPHANS_CF;
type Index = u64;
fn key(slot: u64) -> Key {
@ -115,7 +115,7 @@ impl Column<Kvs> for cf::DetachedHeads {
}
}
impl TypedColumn<Kvs> for cf::DetachedHeads {
impl TypedColumn<Kvs> for cf::Orphans {
type Type = bool;
}