提交 a8f37484 编写于 作者: H Heikki Linnakangas

Fix off-by-one in newly-introdcued GIN assertion.

Spotted by Alexander Korotkov
上级 398cf255
......@@ -815,7 +815,7 @@ dataPlaceToPageLeafRecompress(Buffer buf, disassembledLeaf *leaf,
ptr += segsize;
newsize += segsize;
}
Assert(newsize < GinDataLeafMaxContentSize);
Assert(newsize <= GinDataLeafMaxContentSize);
GinDataLeafPageSetPostingListSize(page, newsize);
GinPageSetCompressed(page); /* in case it was in pre-9.4 format before */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册