Skip to content

Commit f2db765

Browse files
committed
fix for spgist ptrack with xlog
1 parent 86bcaf6 commit f2db765

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/access/spgist/spgdoinsert.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,9 +1116,8 @@ doPickSplit(Relation index, SpGistState *state,
11161116
/* Here we begin making the changes to the target pages */
11171117
if (newLeafBuffer != InvalidBuffer)
11181118
ptrack_add_block(index, BufferGetBlockNumber(newLeafBuffer));
1119-
if (saveCurrent.buffer != InvalidBuffer)
1119+
if (BufferIsValid(saveCurrent.buffer))
11201120
ptrack_add_block(index, BufferGetBlockNumber(saveCurrent.buffer));
1121-
ptrack_add_block(index, BufferGetBlockNumber(current->buffer));
11221121
if (parent->buffer != InvalidBuffer)
11231122
ptrack_add_block(index, BufferGetBlockNumber(parent->buffer));
11241123
START_CRIT_SECTION();

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