File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
postgres-protocol/src/message Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -375,9 +375,15 @@ impl ReplicationMessage<Bytes> {
375
375
INTERPRETED_WAL_RECORD_TAG => {
376
376
let streaming_lsn = buf. read_u64 :: < BigEndian > ( ) ?;
377
377
let wal_end = buf. read_u64 :: < BigEndian > ( ) ?;
378
+ let next_record_lsn = match buf. read_u64 :: < BigEndian > ( ) ? {
379
+ 0 => None ,
380
+ lsn => Some ( lsn) ,
381
+ } ;
382
+
378
383
ReplicationMessage :: RawInterpretedWalRecords ( RawInterpretedWalRecordsBody {
379
384
streaming_lsn,
380
385
wal_end,
386
+ next_record_lsn,
381
387
data : buf. read_all ( ) ,
382
388
} )
383
389
}
@@ -965,6 +971,7 @@ impl<D> XLogDataBody<D> {
965
971
pub struct RawInterpretedWalRecordsBody < D > {
966
972
streaming_lsn : u64 ,
967
973
wal_end : u64 ,
974
+ next_record_lsn : Option < u64 > ,
968
975
data : D ,
969
976
}
970
977
@@ -979,6 +986,11 @@ impl<D> RawInterpretedWalRecordsBody<D> {
979
986
self . wal_end
980
987
}
981
988
989
+ #[ inline]
990
+ pub fn next_record_lsn ( & self ) -> Option < u64 > {
991
+ self . next_record_lsn
992
+ }
993
+
982
994
#[ inline]
983
995
pub fn data ( & self ) -> & D {
984
996
& self . data
You can’t perform that action at this time.
0 commit comments