mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
fix(dump): Fix the import of dumps when there is no data.ms
This commit is contained in:
parent
010dcc3e80
commit
dfaeb19566
1 changed files with 4 additions and 0 deletions
|
@ -186,6 +186,10 @@ pub fn load_dump(
|
||||||
let mut meta_file = File::open(&meta_path)?;
|
let mut meta_file = File::open(&meta_path)?;
|
||||||
let meta: MetadataVersion = serde_json::from_reader(&mut meta_file)?;
|
let meta: MetadataVersion = serde_json::from_reader(&mut meta_file)?;
|
||||||
|
|
||||||
|
if !dst_path.as_ref().exists() {
|
||||||
|
std::fs::create_dir_all(dst_path.as_ref())?;
|
||||||
|
}
|
||||||
|
|
||||||
let tmp_dst = tempfile::tempdir_in(dst_path.as_ref())?;
|
let tmp_dst = tempfile::tempdir_in(dst_path.as_ref())?;
|
||||||
|
|
||||||
info!(
|
info!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue