support avoiding snapshots

This commit is contained in:
Dustin J. Mitchell 2021-10-11 17:14:26 -04:00
parent b97f6dc4d5
commit ed3475d9ea
5 changed files with 85 additions and 31 deletions

View file

@ -6,7 +6,8 @@ pub(crate) fn execute<W: WriteColor>(
replica: &mut Replica,
server: &mut Box<dyn Server>,
) -> Result<(), crate::Error> {
replica.sync(server)?;
// TODO: configurable avoid_snapshots
replica.sync(server, false)?;
writeln!(w, "sync complete.")?;
Ok(())
}