mirror of
https://github.com/ShadowJonathan/conduit_toolbox.git
synced 2025-07-26 13:24:07 +03:00
fix compilation error
This commit is contained in:
parent
fb8688df45
commit
77a604fa50
6 changed files with 16 additions and 9 deletions
|
@ -18,4 +18,4 @@ sled = ["conduit_iface/sled"]
|
|||
persy = ["conduit_iface/persy"]
|
||||
heed = ["conduit_iface/heed"]
|
||||
sqlite = ["conduit_iface/sqlite"]
|
||||
rocksdb = ["conduit_iface/rocksdb"]
|
||||
rocksdb = ["conduit_iface/rocksdb"]
|
||||
|
|
|
@ -165,9 +165,11 @@ fn main() -> anyhow::Result<()> {
|
|||
|
||||
let ignore_broken_rows = matches.is_present("ignore_broken_rows");
|
||||
|
||||
let mut src_db = Database::new(matches.value_of("from").unwrap(), src_dir)?;
|
||||
let config = Config { ignore_broken_rows };
|
||||
|
||||
let mut dst_db = Database::new(matches.value_of("to").unwrap(), dst_dir)?;
|
||||
let mut src_db = Database::new(matches.value_of("from").unwrap(), src_dir, config)?;
|
||||
|
||||
let mut dst_db = Database::new(matches.value_of("to").unwrap(), dst_dir, config)?;
|
||||
|
||||
copy_database(&mut *src_db, &mut *dst_db, 1000)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue