Fix off-by-one in newly-introdcued GIN assertion.
Spotted by Alexander Korotkov
This commit is contained in:
parent
398cf255ad
commit
a8f374849f
@ -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 */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user