Merge branch 'control-persist-only-if-sync' into safekeeper-append-perf

This commit is contained in:
Arthur Petukhovsky
2021-12-06 18:48:47 +03:00

View File

@@ -755,7 +755,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!(