mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-09 06:22:57 +00:00
Fix bug in decoding of truncate record
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user