diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/generation.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/generation.rs b/src/generation.rs index 5412ae7..45b8afa 100644 --- a/src/generation.rs +++ b/src/generation.rs @@ -94,7 +94,6 @@ impl NascentGeneration { &mut self, entries: impl Iterator<Item = Result<FsEntryBackupOutcome, BackupError>>, ) -> Result<Vec<BackupError>, NascentError> { - let t = self.conn.transaction().map_err(NascentError::Transaction)?; let mut warnings = vec![]; for r in entries { match r { @@ -108,12 +107,10 @@ impl NascentGeneration { reason, is_cachedir_tag, }) => { - self.fileno += 1; - sql::insert_one(&t, entry, self.fileno, &ids[..], reason, is_cachedir_tag)?; + self.insert(entry, &ids, reason, is_cachedir_tag)?; } } } - t.commit().map_err(NascentError::Commit)?; Ok(warnings) } } |