!1780 bugfix: 压缩表的mdtruncate无法实际应用到备机
Merge pull request !1780 from 吴岳川/I57V03
This commit is contained in:
@ -722,7 +722,7 @@ void RelationTruncate(Relation rel, BlockNumber nblocks)
|
|||||||
|
|
||||||
XLogBeginInsert();
|
XLogBeginInsert();
|
||||||
XLogRegisterData((char*)&xlrec, size);
|
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
|
* Flush, because otherwise the truncation of the main relation might
|
||||||
|
Reference in New Issue
Block a user