Skip to content

Commit af616a0

Browse files
author
Maxim Orlov
committed
Fix item addinfo corruption.
Copy item additional information from leaf data page. It is necessary when additional information is used after the data page is unlocked. In paricular when sorting of items should be done.
1 parent 0eddfba commit af616a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rumget.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,12 @@ collectMatchBitmap(RumBtreeData * btree, RumBtreeStack * stack,
464464
char *ptr = RumGetPosting(itup);
465465
RumScanItem item;
466466

467+
MemSet(&item, 0, sizeof(item));
467468
ItemPointerSetMin(&item.item.iptr);
468469
for (i = 0; i < RumGetNPosting(itup); i++)
469470
{
470471
ptr = rumDataPageLeafRead(ptr, scanEntry->attnum, &item.item,
471-
false, rumstate);
472+
true, rumstate);
472473
SCAN_ITEM_PUT_KEY(scanEntry, item, idatum, icategory);
473474
rum_tuplesort_putrumitem(scanEntry->matchSortstate, &item);
474475
}

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