Skip to content

Commit 41bc879

Browse files
author
Artur Zakirov
committed
RelationNeedsWAL commented
1 parent a6b6010 commit 41bc879

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

ginbtree.c

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,13 @@ ginInsertValue(GinBtree btree, GinBtreeStack *stack, GinStatsData *buildStats)
380380

381381
MarkBufferDirty(stack->buffer);
382382

383-
if (RelationNeedsWAL(btree->index))
384-
{
385-
XLogRecPtr recptr;
386-
387-
recptr = XLogInsert(RM_GIN_ID, XLOG_GIN_INSERT);
388-
PageSetLSN(page, recptr);
389-
}
383+
// if (RelationNeedsWAL(btree->index))
384+
// {
385+
// XLogRecPtr recptr;
386+
//
387+
// recptr = XLogInsert(RM_GIN_ID, XLOG_GIN_INSERT);
388+
// PageSetLSN(page, recptr);
389+
// }
390390

391391
LockBuffer(stack->buffer, GIN_UNLOCK);
392392
END_CRIT_SECTION();
@@ -451,15 +451,15 @@ ginInsertValue(GinBtree btree, GinBtreeStack *stack, GinStatsData *buildStats)
451451
MarkBufferDirty(lbuffer);
452452
MarkBufferDirty(stack->buffer);
453453

454-
if (RelationNeedsWAL(btree->index))
455-
{
456-
XLogRecPtr recptr;
457-
458-
recptr = XLogInsert(RM_GIN_ID, XLOG_GIN_SPLIT);
459-
PageSetLSN(page, recptr);
460-
PageSetLSN(lpage, recptr);
461-
PageSetLSN(rpage, recptr);
462-
}
454+
// if (RelationNeedsWAL(btree->index))
455+
// {
456+
// XLogRecPtr recptr;
457+
//
458+
// recptr = XLogInsert(RM_GIN_ID, XLOG_GIN_SPLIT);
459+
// PageSetLSN(page, recptr);
460+
// PageSetLSN(lpage, recptr);
461+
// PageSetLSN(rpage, recptr);
462+
// }
463463

464464
UnlockReleaseBuffer(rbuffer);
465465
UnlockReleaseBuffer(lbuffer);
@@ -499,14 +499,14 @@ ginInsertValue(GinBtree btree, GinBtreeStack *stack, GinStatsData *buildStats)
499499
MarkBufferDirty(rbuffer);
500500
MarkBufferDirty(stack->buffer);
501501

502-
if (RelationNeedsWAL(btree->index))
503-
{
504-
XLogRecPtr recptr;
505-
506-
recptr = XLogInsert(RM_GIN_ID, XLOG_GIN_SPLIT);
507-
PageSetLSN(lpage, recptr);
508-
PageSetLSN(rpage, recptr);
509-
}
502+
// if (RelationNeedsWAL(btree->index))
503+
// {
504+
// XLogRecPtr recptr;
505+
//
506+
// recptr = XLogInsert(RM_GIN_ID, XLOG_GIN_SPLIT);
507+
// PageSetLSN(lpage, recptr);
508+
// PageSetLSN(rpage, recptr);
509+
// }
510510
UnlockReleaseBuffer(rbuffer);
511511
END_CRIT_SECTION();
512512
}

0 commit comments

Comments
 (0)