Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)