review: rename to commit LSN to commit_lsn

This commit is contained in:
Vlad Lazar
2024-11-18 12:06:12 +01:00
parent dc220e3f18
commit 1c8f4938cb
4 changed files with 7 additions and 7 deletions

View File

@@ -680,7 +680,7 @@ pub struct InterpretedWalRecordsBody<'a> {
/// End of raw WAL in [`Self::data`]
pub streaming_lsn: u64,
/// Current end of WAL on the server
pub safekeeper_wal_end_lsn: u64,
pub commit_lsn: u64,
/// Start LSN of the next record in PG WAL.
/// Is 0 if the portion of PG WAL did not contain any records.
pub next_record_lsn: u64,
@@ -1020,7 +1020,7 @@ impl BeMessage<'_> {
buf.put_u8(b'0'); // matches INTERPRETED_WAL_RECORD_TAG in postgres-protocol
// dependency
buf.put_u64(rec.streaming_lsn);
buf.put_u64(rec.safekeeper_wal_end_lsn);
buf.put_u64(rec.commit_lsn);
buf.put_u64(rec.next_record_lsn);
buf.put_slice(rec.data);
});