mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
fix dump import error
This commit is contained in:
parent
cd2239eb2d
commit
5670b4d012
1 changed files with 1 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue