Skip truncate records when calculating relation size

This commit is contained in:
Konstantin Knizhnik
2021-04-17 15:54:57 +03:00
parent 8b70ea4d79
commit 33ee5b6ba0
4 changed files with 38 additions and 15 deletions

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+2) as usize);
buf.advance((SizeOfXLogRecord + 2) as usize);
XlSmgrTruncate {
blkno: buf.get_u32_le(),
rnode: RelFileNode {