Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita8f3748

Browse files
committed
Fix off-by-one in newly-introdcued GIN assertion.
Spotted by Alexander Korotkov
1 parent398cf25 commita8f3748

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)

[8]ページ先頭

©2009-2025 Movatter.jp