pub fn snapshot_shared(db: &SharedDb) -> Result<(), GraphError>Expand description
Take the snapshot serve takes — on a --snapshot-every tick, and once
more on a graceful shutdown.
Lives here rather than in main.rs so the behaviour a running server has is
the behaviour a test can call. Busy is the caller’s to interpret: a tick
skips it, since the next one is only a period away.
§Errors
Whatever taking the write lock or writing the snapshot returned.