mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
pgindent run for 9.4
This includes removing tabs after periods in C comments, which was applied to back branches, so this change should not effect backpatching.
This commit is contained in:
@ -133,7 +133,7 @@ ginRedoInsertEntry(Buffer buffer, bool isLeaf, BlockNumber rightblkno, void *rda
|
||||
if (PageAddItem(page, (Item) itup, IndexTupleSize(itup), offset, false, false) == InvalidOffsetNumber)
|
||||
{
|
||||
RelFileNode node;
|
||||
ForkNumber forknum;
|
||||
ForkNumber forknum;
|
||||
BlockNumber blknum;
|
||||
|
||||
BufferGetTag(buffer, &node, &forknum, &blknum);
|
||||
@ -341,8 +341,8 @@ ginRedoInsert(XLogRecPtr lsn, XLogRecord *record)
|
||||
payload = XLogRecGetData(record) + sizeof(ginxlogInsert);
|
||||
|
||||
/*
|
||||
* First clear incomplete-split flag on child page if this finishes
|
||||
* a split.
|
||||
* First clear incomplete-split flag on child page if this finishes a
|
||||
* split.
|
||||
*/
|
||||
if (!isLeaf)
|
||||
{
|
||||
@ -472,8 +472,8 @@ ginRedoSplit(XLogRecPtr lsn, XLogRecord *record)
|
||||
payload = XLogRecGetData(record) + sizeof(ginxlogSplit);
|
||||
|
||||
/*
|
||||
* First clear incomplete-split flag on child page if this finishes
|
||||
* a split
|
||||
* First clear incomplete-split flag on child page if this finishes a
|
||||
* split
|
||||
*/
|
||||
if (!isLeaf)
|
||||
{
|
||||
@ -522,7 +522,7 @@ ginRedoSplit(XLogRecPtr lsn, XLogRecord *record)
|
||||
|
||||
if (isRoot)
|
||||
{
|
||||
BlockNumber rootBlkno = data->rrlink;
|
||||
BlockNumber rootBlkno = data->rrlink;
|
||||
Buffer rootBuf = XLogReadBuffer(data->node, rootBlkno, true);
|
||||
Page rootPage = BufferGetPage(rootBuf);
|
||||
|
||||
@ -711,9 +711,9 @@ ginRedoUpdateMetapage(XLogRecPtr lsn, XLogRecord *record)
|
||||
Buffer buffer;
|
||||
|
||||
/*
|
||||
* Restore the metapage. This is essentially the same as a full-page image,
|
||||
* so restore the metapage unconditionally without looking at the LSN, to
|
||||
* avoid torn page hazards.
|
||||
* Restore the metapage. This is essentially the same as a full-page
|
||||
* image, so restore the metapage unconditionally without looking at the
|
||||
* LSN, to avoid torn page hazards.
|
||||
*/
|
||||
metabuffer = XLogReadBuffer(data->node, GIN_METAPAGE_BLKNO, false);
|
||||
if (!BufferIsValid(metabuffer))
|
||||
@ -877,7 +877,7 @@ ginRedoDeleteListPages(XLogRecPtr lsn, XLogRecord *record)
|
||||
|
||||
/*
|
||||
* In normal operation, shiftList() takes exclusive lock on all the
|
||||
* pages-to-be-deleted simultaneously. During replay, however, it should
|
||||
* pages-to-be-deleted simultaneously. During replay, however, it should
|
||||
* be all right to lock them one at a time. This is dependent on the fact
|
||||
* that we are deleting pages from the head of the list, and that readers
|
||||
* share-lock the next page before releasing the one they are on. So we
|
||||
|
Reference in New Issue
Block a user