mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-05 04:22:56 +00:00
cargo fmt
This commit is contained in:
@@ -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)?;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user