Skip to main content

snapshot_automatically

Function snapshot_automatically 

Source
pub fn snapshot_automatically(db: &mut WriteGuard<'_>) -> Result<(), GraphError>
Expand description

Take AUTOMATIC_SNAPSHOT under a held write lock, keeping AUTO_SNAPSHOT_RETENTION archives.

The single place the automatic disposition and the automatic bound are applied together, so no caller can pick up one without the other.

ยงErrors

Whatever writing the snapshot returned.