Skip to content

Commit e619cf8

Browse files
committed
review: rename wal_end to commit_lsn
1 parent e6c92ba commit e619cf8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

postgres-protocol/src/message/backend.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,15 +374,15 @@ impl ReplicationMessage<Bytes> {
374374
}
375375
INTERPRETED_WAL_RECORD_TAG => {
376376
let streaming_lsn = buf.read_u64::<BigEndian>()?;
377-
let wal_end = buf.read_u64::<BigEndian>()?;
377+
let commit_lsn = buf.read_u64::<BigEndian>()?;
378378
let next_record_lsn = match buf.read_u64::<BigEndian>()? {
379379
0 => None,
380380
lsn => Some(lsn),
381381
};
382382

383383
ReplicationMessage::RawInterpretedWalRecords(RawInterpretedWalRecordsBody {
384384
streaming_lsn,
385-
wal_end,
385+
commit_lsn,
386386
next_record_lsn,
387387
data: buf.read_all(),
388388
})
@@ -970,7 +970,7 @@ impl<D> XLogDataBody<D> {
970970
#[derive(Debug)]
971971
pub struct RawInterpretedWalRecordsBody<D> {
972972
streaming_lsn: u64,
973-
wal_end: u64,
973+
commit_lsn: u64,
974974
next_record_lsn: Option<u64>,
975975
data: D,
976976
}
@@ -982,8 +982,8 @@ impl<D> RawInterpretedWalRecordsBody<D> {
982982
}
983983

984984
#[inline]
985-
pub fn wal_end(&self) -> u64 {
986-
self.wal_end
985+
pub fn commit_lsn(&self) -> u64 {
986+
self.commit_lsn
987987
}
988988

989989
#[inline]

0 commit comments

Comments
 (0)