Skip to content

Commit 3dc7fc3

Browse files
author
shubhambaraiss
committed
updated location of predicatelockpage
1 parent f3c58a9 commit 3dc7fc3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rumget.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ scanPostingTree(Relation index, RumScanEntry scanEntry,
197197

198198
buffer = rumScanBeginPostingTree(gdi, NULL);
199199

200-
PredicateLockPage(index, BufferGetBlockNumber(buffer), snapshot);
201-
202200
IncrBufferRefCount(buffer); /* prevent unpin in freeRumBtreeStack */
203201

202+
PredicateLockPage(index, BufferGetBlockNumber(buffer), snapshot);
203+
204204
freeRumBtreeStack(gdi->stack);
205205
pfree(gdi);
206206

@@ -1707,15 +1707,15 @@ entryFindItem(RumState * rumstate, RumScanEntry entry, RumItem * item, Snapshot
17071707
RUM_SHARE, entry->scanDirection);
17081708
entry->gdi->stack->buffer = entry->buffer;
17091709

1710-
PredicateLockPage(rumstate->index, BufferGetBlockNumber(entry->buffer), snapshot);
1711-
17121710
if (entry->buffer == InvalidBuffer)
17131711
{
17141712
ItemPointerSetInvalid(&entry->curItem.iptr);
17151713
entry->isFinished = TRUE;
17161714
return;
17171715
}
17181716

1717+
PredicateLockPage(rumstate->index, BufferGetBlockNumber(entry->buffer), snapshot);
1718+
17191719
entry->gdi->stack->blkno = BufferGetBlockNumber(entry->buffer);
17201720

17211721
if (scanPage(rumstate, entry, item, true))

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