Commit a8f37484 authored by Heikki Linnakangas's avatar Heikki Linnakangas

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

Spotted by Alexander Korotkov
parent 398cf255
...@@ -815,7 +815,7 @@ dataPlaceToPageLeafRecompress(Buffer buf, disassembledLeaf *leaf, ...@@ -815,7 +815,7 @@ dataPlaceToPageLeafRecompress(Buffer buf, disassembledLeaf *leaf,
ptr += segsize; ptr += segsize;
newsize += segsize; newsize += segsize;
} }
Assert(newsize < GinDataLeafMaxContentSize); Assert(newsize <= GinDataLeafMaxContentSize);
GinDataLeafPageSetPostingListSize(page, newsize); GinDataLeafPageSetPostingListSize(page, newsize);
GinPageSetCompressed(page); /* in case it was in pre-9.4 format before */ GinPageSetCompressed(page); /* in case it was in pre-9.4 format before */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment