mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Keep persisting tmp files in database directory and put non-persisting tmp files in default tmp dir
This commit is contained in:
parent
79817bd465
commit
b4038597ba
7 changed files with 10 additions and 35 deletions
|
@ -253,7 +253,7 @@ where
|
|||
UpdateMsg::dump(&self.update_sender, uuids, temp_dump_path.clone()).await?;
|
||||
|
||||
let dump_path = tokio::task::spawn_blocking(move || -> Result<PathBuf> {
|
||||
let temp_dump_file = tempfile::NamedTempFile::new()?;
|
||||
let temp_dump_file = tempfile::NamedTempFile::new_in(&self.path)?;
|
||||
to_tar_gz(temp_dump_path, temp_dump_file.path())
|
||||
.map_err(|e| DumpActorError::Internal(e.into()))?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue