Fix bug in decoding of truncate record

This commit is contained in:
Konstantin Knizhnik
2021-04-15 17:09:30 +03:00
parent 24b925d528
commit b67df00bff

View File

@@ -347,7 +347,7 @@ pub struct XlSmgrTruncate {
pub fn decode_truncate_record(decoded: &DecodedWALRecord) -> XlSmgrTruncate {
let mut buf = decoded.record.clone();
buf.advance(SizeOfXLogRecord as usize);
buf.advance((SizeOfXLogRecord+2) as usize);
XlSmgrTruncate {
blkno: buf.get_u32_le(),
rnode: RelFileNode {