fix code format after main rebase

This commit is contained in:
Dmitry Rodionov
2021-08-23 17:45:45 +03:00
committed by Dmitry
parent b29ca232d6
commit dcaa2126f1
2 changed files with 4 additions and 3 deletions

View File

@@ -53,7 +53,6 @@ pub struct InMemoryLayerInner {
segsizes: BTreeMap<Lsn, u32>,
}
impl InMemoryLayerInner {
fn get_seg_size(&self, seg: SegmentTag, lsn: Lsn) -> Result<u32> {
// Scan the BTreeMap backwards, starting from the given entry.
@@ -252,7 +251,7 @@ impl InMemoryLayer {
// use inner get_seg_size, since calling self.get_seg_size will try to acquire self.inner.lock
// which we've just acquired above
let oldsize = inner.get_seg_size(self.seg, lsn).unwrap_or(0);
let oldsize = inner.get_seg_size(self.seg, lsn).unwrap_or(0);
if newsize > oldsize {
trace!(
"enlarging segment {} from {} to {} blocks at {}",

View File

@@ -427,7 +427,9 @@ pub fn save_decoded_record(
// Remove twophase file. see RemoveTwoPhaseFile() in postgres code
trace!(
"unlink twophaseFile for xid {} parsed_xact.xid {} here at {}",
decoded.xl_xid, parsed_xact.xid, lsn
decoded.xl_xid,
parsed_xact.xid,
lsn
);
timeline.put_unlink(
RelishTag::TwoPhase {