computer: stateful snapshot

This commit is contained in:
nym21
2025-12-18 13:01:31 +01:00
parent edbec6fd5c
commit a86085c2db
10 changed files with 161 additions and 80 deletions

View File

@@ -56,11 +56,11 @@ impl AddressesDataVecs {
}
/// Flush both loaded and empty data with stamp.
pub fn flush(&mut self, stamp: Stamp, with_changes: bool) -> Result<()> {
pub fn write(&mut self, stamp: Stamp, with_changes: bool) -> Result<()> {
self.loaded
.stamped_flush_maybe_with_changes(stamp, with_changes)?;
.stamped_write_maybe_with_changes(stamp, with_changes)?;
self.empty
.stamped_flush_maybe_with_changes(stamp, with_changes)?;
.stamped_write_maybe_with_changes(stamp, with_changes)?;
Ok(())
}
}