Don't persist control file if sync is false

This commit is contained in:
Arthur Petukhovsky
2021-12-06 18:48:11 +03:00
parent 0a8c672630
commit 8f85d69b6a

View File

@@ -753,7 +753,10 @@ where
self.s.commit_lsn = self.commit_lsn;
self.s.truncate_lsn = self.truncate_lsn;
}
self.storage.persist(&self.s, sync_control_file)?;
if sync_control_file {
self.storage.persist(&self.s, true)?;
}
let resp = self.append_response();
info!(