mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-02-17 00:00:11 +08:00
fix dump import error
This commit is contained in:
parent
cd2239eb2d
commit
5670b4d012
@ -196,10 +196,7 @@ impl IndexControllerBuilder {
|
|||||||
task_store_size,
|
task_store_size,
|
||||||
&indexer_options,
|
&indexer_options,
|
||||||
)?;
|
)?;
|
||||||
}
|
} else if db_path.as_ref().exists() {
|
||||||
|
|
||||||
let db_exists = db_path.as_ref().exists();
|
|
||||||
if db_exists {
|
|
||||||
// Directory could be pre-created without any database in.
|
// Directory could be pre-created without any database in.
|
||||||
let db_is_empty = db_path.as_ref().read_dir()?.next().is_none();
|
let db_is_empty = db_path.as_ref().read_dir()?.next().is_none();
|
||||||
if !db_is_empty {
|
if !db_is_empty {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user