!1780 bugfix: 压缩表的mdtruncate无法实际应用到备机

Merge pull request !1780 from 吴岳川/I57V03
This commit is contained in:
opengauss-bot
2022-05-31 02:36:57 +00:00
committed by Gitee

View File

@ -722,7 +722,7 @@ void RelationTruncate(Relation rel, BlockNumber nblocks)
XLogBeginInsert();
XLogRegisterData((char*)&xlrec, size);
lsn = XLogInsert(RM_SMGR_ID, XLOG_SMGR_TRUNCATE | XLR_SPECIAL_REL_UPDATE, rel->rd_node.bucketNode);
lsn = XLogInsert(RM_SMGR_ID, info, rel->rd_node.bucketNode);
/*
* Flush, because otherwise the truncation of the main relation might