From 5e3a53b576c798974de4c58272272d5415b38f05 Mon Sep 17 00:00:00 2001 From: Tamo Date: Thu, 7 Oct 2021 18:51:04 +0200 Subject: [PATCH] fix a bug in the generation of empty dumps --- meilisearch-lib/src/index_controller/dump_actor/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/meilisearch-lib/src/index_controller/dump_actor/mod.rs b/meilisearch-lib/src/index_controller/dump_actor/mod.rs index 76a21398a..8169a0092 100644 --- a/meilisearch-lib/src/index_controller/dump_actor/mod.rs +++ b/meilisearch-lib/src/index_controller/dump_actor/mod.rs @@ -248,6 +248,7 @@ where let mut meta_file = File::create(&meta_path)?; serde_json::to_writer(&mut meta_file, &meta)?; + create_dir_all(&temp_dump_path.join("indexes")).await?; let uuids = self.index_resolver.dump(temp_dump_path.clone()).await?; UpdateMsg::dump(&self.update_sender, uuids, temp_dump_path.clone()).await?;