global: snapshot

This commit is contained in:
nym21
2025-03-02 12:45:33 +01:00
parent 0453b6903a
commit ceefc8ffc6
14 changed files with 113 additions and 94 deletions

View File

@@ -565,12 +565,12 @@ where
) -> Result<()>
where
A: StoredType,
F: Fn(&A) -> T,
F: Fn(&A, I) -> T,
{
self.validate_computed_version_or_reset_file(Version::from(0) + self.version + other.version)?;
let index = max_from.min(I::from(self.len()));
other.iter_from(index, |(i, a)| self.push_and_flush_if_needed(i, t(a), exit))?;
other.iter_from(index, |(i, a)| self.push_and_flush_if_needed(i, t(a, i), exit))?;
Ok(self.safe_flush(exit)?)
}