Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdd7ea37

Browse files
committed
Fix pgindent damage.
Apparently, I neglected to pgindent the prior commit.Per buildfarm.
1 parentd75c402 commitdd7ea37

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

‎src/backend/backup/basebackup_incremental.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,8 @@ GetFileBackupMethod(IncrementalBackupInfo *ib, const char *path,
778778
}
779779

780780
/*
781-
* Look up the special block reference table entry for the database as
782-
*awhole.
781+
* Look up the special block reference table entry for the database as a
782+
* whole.
783783
*/
784784
rlocator.spcOid=spcoid;
785785
rlocator.dbOid=dboid;

‎src/backend/postmaster/walsummarizer.c

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,25 +1089,25 @@ SummarizeDbaseRecord(XLogReaderState *xlogreader, BlockRefTable *brtab)
10891089
uint8info=XLogRecGetInfo(xlogreader)& ~XLR_INFO_MASK;
10901090

10911091
/*
1092-
* We use relfilenode zero for a given database OID and tablespace OID
1093-
*toindicate that all relations with that pair of IDs have been
1094-
*recreatedif they exist at all. Effectively, we're setting a limit
1095-
*block of 0 forall such relfilenodes.
1092+
* We use relfilenode zero for a given database OID and tablespace OID to
1093+
* indicate that all relations with that pair of IDs have been recreated
1094+
* if they exist at all. Effectively, we're setting a limit block of 0 for
1095+
* all such relfilenodes.
10961096
*
10971097
* Technically, this special handling is only needed in the case of
1098-
* XLOG_DBASE_CREATE_FILE_COPY, because that can create a whole bunch
1099-
*ofrelation files in a directory without logging anything
1100-
*specific to eachone. If we didn't mark the whole DB OID/TS OID
1101-
*combination in some way,then a tablespace that was dropped after
1102-
*the reference backup andrecreated using the FILE_COPY method prior
1103-
*to the incremental backupwould look just like one that was never
1104-
*touched at all, which would becatastrophic.
1098+
* XLOG_DBASE_CREATE_FILE_COPY, because that can create a whole bunch of
1099+
* relation files in a directory without logging anything specific to each
1100+
* one. If we didn't mark the whole DB OID/TS OID combination in some way,
1101+
* then a tablespace that was dropped after the reference backup and
1102+
* recreated using the FILE_COPY method prior to the incremental backup
1103+
* would look just like one that was never touched at all, which would be
1104+
* catastrophic.
11051105
*
1106-
* But it seems best to adopt this treatment for all records that drop
1107-
*orcreate a DB OID/TS OID combination. That's similar to how we
1108-
*treat thelimit block for individual relations, and it's an extra
1109-
*layer of safetyhere. We can never lose data by marking more stuff
1110-
*as needing to bebacked up in full.
1106+
* But it seems best to adopt this treatment for all records that drop or
1107+
* create a DB OID/TS OID combination. That's similar to how we treat the
1108+
* limit block for individual relations, and it's an extra layer of safety
1109+
* here. We can never lose data by marking more stuff as needing to be
1110+
* backed up in full.
11111111
*/
11121112
if (info==XLOG_DBASE_CREATE_FILE_COPY)
11131113
{
@@ -1136,7 +1136,7 @@ SummarizeDbaseRecord(XLogReaderState *xlogreader, BlockRefTable *brtab)
11361136
{
11371137
xl_dbase_drop_rec*xlrec;
11381138
RelFileLocatorrlocator;
1139-
inti;
1139+
inti;
11401140

11411141
xlrec= (xl_dbase_drop_rec*)XLogRecGetData(xlogreader);
11421142
rlocator.dbOid=xlrec->db_id;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp