diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-02-07 17:56:33 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-02-07 18:42:09 +0200 |
commit | 73a9ca3d90ac393b7b8575199a3fcce855374136 (patch) | |
tree | 967c38039687c7eca780379d3f6b6d1933ae911d /src/backup_run.rs | |
parent | ae8b09f0e6c7c1778f1d859bafaa83f75dcbf166 (diff) | |
download | obnam2-73a9ca3d90ac393b7b8575199a3fcce855374136.tar.gz |
feat: add catch-all Reason variant for unknown reason
Just in case the SQLite DB stores a reason this version of Obnam
doesn't understand, we handle that now.
Diffstat (limited to 'src/backup_run.rs')
-rw-r--r-- | src/backup_run.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backup_run.rs b/src/backup_run.rs index fce9a73..f97bb58 100644 --- a/src/backup_run.rs +++ b/src/backup_run.rs @@ -85,7 +85,7 @@ impl BackupRun { self.progress.found_live_file(path); let reason = self.policy.needs_backup(&old, &entry); match reason { - Reason::IsNew | Reason::Changed | Reason::Error => { + Reason::IsNew | Reason::Changed | Reason::Error | Reason::Unknown => { let ids = self .client .upload_filesystem_entry(&entry, self.buffer_size)?; |