fix dump import error

This commit is contained in:
ad hoc 2022-05-16 14:33:33 +02:00
parent cd2239eb2d
commit 5670b4d012
No known key found for this signature in database
GPG Key ID: 4F00A782990CC643

View File

@ -196,10 +196,7 @@ impl IndexControllerBuilder {
task_store_size,
&indexer_options,
)?;
}
let db_exists = db_path.as_ref().exists();
if db_exists {
} else if db_path.as_ref().exists() {
// Directory could be pre-created without any database in.
let db_is_empty = db_path.as_ref().read_dir()?.next().is_none();
if !db_is_empty {