Keep persisting tmp files in database directory and put non-persisting tmp files in default tmp dir

This commit is contained in:
many 2021-10-18 14:16:35 +02:00
parent 79817bd465
commit b4038597ba
No known key found for this signature in database
GPG key ID: 2CEF23B75189EACA
7 changed files with 10 additions and 35 deletions

View file

@ -52,7 +52,7 @@ impl UpdateStore {
uuids: &HashSet<Uuid>,
path: impl AsRef<Path>,
) -> Result<()> {
let mut dump_data_file = NamedTempFile::new()?;
let mut dump_data_file = NamedTempFile::new_in(&path)?;
self.dump_pending(txn, uuids, &mut dump_data_file, &path)?;
self.dump_completed(txn, uuids, &mut dump_data_file)?;