src/backup/catalog.rs - dump_dir: make sure we parsed the whole data block
This commit is contained in:
parent
12a1975af9
commit
5d92935e03
@ -323,6 +323,10 @@ impl <R: Read + Seek> CatalogReader<R> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !cursor.is_empty() {
|
||||||
|
bail!("unable to parse whole catalog data block");
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user