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

Spotted by Alexander Korotkov
This commit is contained in:
Heikki Linnakangas 2014-01-24 11:10:09 +02:00
parent 398cf255ad
commit a8f374849f
1 changed files with 1 additions and 1 deletions

View File

@ -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 */