split the dumps between v1 and v2

This commit is contained in:
tamo 2021-04-27 10:27:43 +02:00
parent e389c088eb
commit c4d898a265
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
6 changed files with 205 additions and 66 deletions

View file

@ -75,7 +75,7 @@ pub struct Stats {
}
impl IndexController {
pub fn new(path: impl AsRef<Path>, options: &Opt) -> anyhow::Result<Self> {
pub async fn new(path: impl AsRef<Path>, options: &Opt) -> anyhow::Result<Self> {
let index_size = options.max_mdb_size.get_bytes() as usize;
let update_store_size = options.max_udb_size.get_bytes() as usize;
@ -92,7 +92,7 @@ impl IndexController {
&options.db_path,
path,
index_size,
);
).await?;
}