Skip to content

Commit 54a402c

Browse files
committed
Add a FIXME for potential failures in other files.
1 parent 1b44ece commit 54a402c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/access/gin/ginpostinglist.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,14 @@ ginPostingListDecodeAllSegments(GinPostingList *segment, int len, int *ndecoded_
338338
/*
339339
* Keep this commented out.
340340
* See comments in itemptr_to_uint64().
341+
*
342+
* FIXME: Correct like this in other files (e.g., ginpostinglist.c and gist.c)
343+
* if we can reproduce the cases.
341344
*/
342345
#if 0
343346
Assert(OffsetNumberIsValid(ItemPointerGetOffsetNumber(&segment->first)));
344347
#endif
345-
Assert(ndecoded == 0 || ginCompareItemPointers(&segment->first, &result[ndecoded - 1]) > 0);
348+
Assert(ndecoded == 0 || ginCompareItemPointers(&segment->first, &result[ndecoded - 1]) > 0);
346349
result[ndecoded] = segment->first;
347350
ndecoded++;
348351

0 commit comments

Comments
 (0)