-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: imex::import_backup: Unpack all blobs before importing a db (#4307)
This way we can't get an account with missing blobs if there's not enough disk space. Also delete already unpacked files if all files weren't unpacked successfully. Still, there are some minor problems remaining: - If a db wasn't imported successfully, unpacked blobs aren't deleted because we don't know at which step the import failed and whether the db will reference the blobs after a restart. - If `delete_and_reset_all_device_msgs()` fails, the whole `import_backup()` fails also, but after a restart delete_and_reset_all_device_msgs() isn't retried. Probably errors from it should be ignored at all.
- Loading branch information
Showing
1 changed file
with
61 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters