cargo fmt

This commit is contained in:
anastasia
2021-08-10 20:51:27 +03:00
committed by lubennikovaav
parent 20d5e757ca
commit 4eebe22fbb
2 changed files with 4 additions and 5 deletions

View File

@@ -180,8 +180,7 @@ impl<'a> Basebackup<'a> {
//
fn add_twophase_file(&mut self, xid: TransactionId) -> anyhow::Result<()> {
// Include in tarball two-phase files only of in-progress transactions
if self.timeline.get_tx_is_in_progress(xid, self.lsn)
{
if self.timeline.get_tx_is_in_progress(xid, self.lsn) {
let img =
self.timeline
.get_page_at_lsn_nowait(RelishTag::TwoPhase { xid }, 0, self.lsn)?;

View File

@@ -168,10 +168,10 @@ pub trait Timeline: Send + Sync {
segno,
},
rpageno,
lsn)
{
lsn,
) {
let status = transaction_id_get_status(xid, &clog_page[..]);
return status == pg_constants::TRANSACTION_STATUS_IN_PROGRESS
return status == pg_constants::TRANSACTION_STATUS_IN_PROGRESS;
}
return false;
}