mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
pgindent run prior to branching
This commit is contained in:
@ -247,9 +247,9 @@ ginHeapTupleFastInsert(GinState *ginstate, GinTupleCollector *collector)
|
||||
metapage = BufferGetPage(metabuffer);
|
||||
|
||||
/*
|
||||
* An insertion to the pending list could logically belong anywhere in
|
||||
* the tree, so it conflicts with all serializable scans. All scans
|
||||
* acquire a predicate lock on the metabuffer to represent that.
|
||||
* An insertion to the pending list could logically belong anywhere in the
|
||||
* tree, so it conflicts with all serializable scans. All scans acquire a
|
||||
* predicate lock on the metabuffer to represent that.
|
||||
*/
|
||||
CheckForSerializableConflictIn(index, NULL, metabuffer);
|
||||
|
||||
|
@ -235,8 +235,8 @@ collectMatchBitmap(GinBtreeData *btree, GinBtreeStack *stack,
|
||||
LockBuffer(stack->buffer, GIN_UNLOCK);
|
||||
|
||||
/*
|
||||
* Acquire predicate lock on the posting tree. We already hold
|
||||
* a lock on the entry page, but insertions to the posting tree
|
||||
* Acquire predicate lock on the posting tree. We already hold a
|
||||
* lock on the entry page, but insertions to the posting tree
|
||||
* don't check for conflicts on that level.
|
||||
*/
|
||||
PredicateLockPage(btree->index, rootPostingTree, snapshot);
|
||||
@ -1766,8 +1766,8 @@ scanPendingInsert(IndexScanDesc scan, TIDBitmap *tbm, int64 *ntids)
|
||||
*ntids = 0;
|
||||
|
||||
/*
|
||||
* Acquire predicate lock on the metapage, to conflict with any
|
||||
* fastupdate insertions.
|
||||
* Acquire predicate lock on the metapage, to conflict with any fastupdate
|
||||
* insertions.
|
||||
*/
|
||||
PredicateLockPage(scan->indexRelation, GIN_METAPAGE_BLKNO, scan->xs_snapshot);
|
||||
|
||||
|
Reference in New Issue
Block a user