Skip to content

Commit ea28a73

Browse files
committed
Use exclusive lock of page to post-build log write
1 parent 5df5c3e commit ea28a73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruminsert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ rumbuild(Relation heap, Relation index, struct IndexInfo *indexInfo)
682682
CHECK_FOR_INTERRUPTS();
683683

684684
buffer = ReadBuffer(index, blkno);
685-
LockBuffer(buffer, RUM_SHARE);
685+
LockBuffer(buffer, RUM_EXCLUSIVE);
686686

687687
state = GenericXLogStart(index);
688688
GenericXLogRegisterBuffer(state, buffer, GENERIC_XLOG_FULL_IMAGE);

0 commit comments

Comments
 (0)