diff options
Diffstat (limited to 'src/backend/access/gin')
-rw-r--r-- | src/backend/access/gin/ginbtree.c | 12 | ||||
-rw-r--r-- | src/backend/access/gin/gindatapage.c | 4 | ||||
-rw-r--r-- | src/backend/access/gin/ginget.c | 16 | ||||
-rw-r--r-- | src/backend/access/gin/gininsert.c | 10 |
4 files changed, 21 insertions, 21 deletions
diff --git a/src/backend/access/gin/ginbtree.c b/src/backend/access/gin/ginbtree.c index 095b1192cb4..828c7074b70 100644 --- a/src/backend/access/gin/ginbtree.c +++ b/src/backend/access/gin/ginbtree.c @@ -521,12 +521,12 @@ ginPlaceToPage(GinBtree btree, GinBtreeStack *stack, { PredicateLockPageSplit(btree->index, - BufferGetBlockNumber(stack->buffer), - BufferGetBlockNumber(lbuffer)); + BufferGetBlockNumber(stack->buffer), + BufferGetBlockNumber(lbuffer)); PredicateLockPageSplit(btree->index, - BufferGetBlockNumber(stack->buffer), - BufferGetBlockNumber(rbuffer)); + BufferGetBlockNumber(stack->buffer), + BufferGetBlockNumber(rbuffer)); } } @@ -543,8 +543,8 @@ ginPlaceToPage(GinBtree btree, GinBtreeStack *stack, { PredicateLockPageSplit(btree->index, - BufferGetBlockNumber(stack->buffer), - BufferGetBlockNumber(rbuffer)); + BufferGetBlockNumber(stack->buffer), + BufferGetBlockNumber(rbuffer)); } } diff --git a/src/backend/access/gin/gindatapage.c b/src/backend/access/gin/gindatapage.c index 642ca1a2c73..59bf21744f5 100644 --- a/src/backend/access/gin/gindatapage.c +++ b/src/backend/access/gin/gindatapage.c @@ -1812,8 +1812,8 @@ createPostingTree(Relation index, ItemPointerData *items, uint32 nitems, blkno = BufferGetBlockNumber(buffer); /* - * Copy a predicate lock from entry tree leaf (containing posting list) - * to posting tree. + * Copy a predicate lock from entry tree leaf (containing posting list) to + * posting tree. */ PredicateLockPageSplit(index, BufferGetBlockNumber(entrybuffer), blkno); diff --git a/src/backend/access/gin/ginget.c b/src/backend/access/gin/ginget.c index 0e984166fa8..f3db7cc6405 100644 --- a/src/backend/access/gin/ginget.c +++ b/src/backend/access/gin/ginget.c @@ -42,11 +42,11 @@ static void GinPredicateLockPage(Relation index, BlockNumber blkno, Snapshot snapshot) { /* - * When fast update is on then no need in locking pages, because we - * anyway need to lock the whole index. + * When fast update is on then no need in locking pages, because we anyway + * need to lock the whole index. */ if (!GinGetUseFastUpdate(index)) - PredicateLockPage(index, blkno, snapshot); + PredicateLockPage(index, blkno, snapshot); } /* @@ -426,8 +426,8 @@ restartScanEntry: entry->buffer = stack->buffer; /* - * Predicate lock visited posting tree page, following pages - * will be locked by moveRightIfItNeeded or entryLoadMoreItems + * Predicate lock visited posting tree page, following pages will + * be locked by moveRightIfItNeeded or entryLoadMoreItems */ GinPredicateLockPage(ginstate->index, BufferGetBlockNumber(entry->buffer), snapshot); @@ -1779,9 +1779,9 @@ scanPendingInsert(IndexScanDesc scan, TIDBitmap *tbm, int64 *ntids) UnlockReleaseBuffer(metabuffer); /* - * If fast update is enabled, we acquire a predicate lock on the entire - * relation as fast update postpones the insertion of tuples into index - * structure due to which we can't detect rw conflicts. + * If fast update is enabled, we acquire a predicate lock on the + * entire relation as fast update postpones the insertion of tuples + * into index structure due to which we can't detect rw conflicts. */ if (GinGetUseFastUpdate(scan->indexRelation)) PredicateLockRelation(scan->indexRelation, scan->xs_snapshot); diff --git a/src/backend/access/gin/gininsert.c b/src/backend/access/gin/gininsert.c index ec5eebb8484..cf218dd75d4 100644 --- a/src/backend/access/gin/gininsert.c +++ b/src/backend/access/gin/gininsert.c @@ -519,12 +519,12 @@ gininsert(Relation index, Datum *values, bool *isnull, /* * With fastupdate on each scan and each insert begin with access to - * pending list, so it effectively lock entire index. In this case - * we aquire predicate lock and check for conflicts over index relation, + * pending list, so it effectively lock entire index. In this case we + * aquire predicate lock and check for conflicts over index relation, * and hope that it will reduce locking overhead. * - * Do not use GinCheckForSerializableConflictIn() here, because - * it will do nothing (it does actual work only with fastupdate off). + * Do not use GinCheckForSerializableConflictIn() here, because it + * will do nothing (it does actual work only with fastupdate off). * Check for conflicts for entire index. */ CheckForSerializableConflictIn(index, NULL, InvalidBuffer); @@ -539,7 +539,7 @@ gininsert(Relation index, Datum *values, bool *isnull, } else { - GinStatsData stats; + GinStatsData stats; /* * Fastupdate is off but if pending list isn't empty then we need to |