Skip to content

Commit a8f3748

Browse files
committed
Fix off-by-one in newly-introdcued GIN assertion.
Spotted by Alexander Korotkov
1 parent 398cf25 commit a8f3748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/gin/gindatapage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ dataPlaceToPageLeafRecompress(Buffer buf, disassembledLeaf *leaf,
815815
ptr += segsize;
816816
newsize += segsize;
817817
}
818-
Assert(newsize < GinDataLeafMaxContentSize);
818+
Assert(newsize <= GinDataLeafMaxContentSize);
819819
GinDataLeafPageSetPostingListSize(page, newsize);
820820
GinPageSetCompressed(page); /* in case it was in pre-9.4 format before */
821821

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy