Skip to content

Commit

Permalink
Changes to fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
poojanilangekar committed Sep 14, 2023
1 parent 162984b commit 3113d48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/postgres_ffi/src/nonrelfile_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub fn mx_offset_to_member_offset(xid: MultiXactId) -> usize {
}

fn mx_offset_to_member_page(xid: u32, region: u32) -> u32 {
((xid / pg_constants::MULTIXACT_MEMBERS_PER_PAGE as u32) * pg_constants::MAX_REGIONS as u32) + region
((xid / pg_constants::MULTIXACT_MEMBERS_PER_PAGE as u32) * pg_constants::MAX_REGIONS) + region
}

pub fn mx_offset_to_member_segment(xid: u32, region: u32) -> i32 {
Expand Down
4 changes: 2 additions & 2 deletions pageserver/src/walingest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ impl<'a> WalIngest<'a> {
NeonWalRecord::MultixactOffsetCreate {
mid: xlrec.mid,
moff: xlrec.moff,
region: region,
region,
},
)?;

Expand Down Expand Up @@ -993,7 +993,7 @@ impl<'a> WalIngest<'a> {
NeonWalRecord::MultixactMembersCreate {
moff: offset,
members: this_page_members,
region: region,
region,
},
)?;

Expand Down

0 comments on commit 3113d48

Please sign in to comment.