fix database options

This commit is contained in:
mpostma 2020-04-29 21:26:58 +02:00
parent 382e300326
commit 2e3a765dac
6 changed files with 37 additions and 26 deletions

View file

@ -463,7 +463,11 @@ fn main() -> Result<(), Box<dyn Error>> {
env_logger::init();
let opt = Command::from_args();
let database = Database::open_or_create(opt.path(), DatabaseOptions::default())?;
let db_opts = DatabaseOptions {
main_map_size: 100 * 1024 * 1024 * 1024,
update_map_size: 100 * 1024 * 1024 * 1024,
};
let database = Database::open_or_create(opt.path(), db_opts)?;
match opt {
Command::Index(command) => index_command(command, database),