mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03:00
Fix pgindent damage.
Apparently, I neglected to pgindent the prior commit. Per buildfarm.
This commit is contained in:
parent
d75c4027b6
commit
dd7ea37c43
@ -778,8 +778,8 @@ GetFileBackupMethod(IncrementalBackupInfo *ib, const char *path,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Look up the special block reference table entry for the database as
|
* Look up the special block reference table entry for the database as a
|
||||||
* a whole.
|
* whole.
|
||||||
*/
|
*/
|
||||||
rlocator.spcOid = spcoid;
|
rlocator.spcOid = spcoid;
|
||||||
rlocator.dbOid = dboid;
|
rlocator.dbOid = dboid;
|
||||||
|
@ -1089,25 +1089,25 @@ SummarizeDbaseRecord(XLogReaderState *xlogreader, BlockRefTable *brtab)
|
|||||||
uint8 info = XLogRecGetInfo(xlogreader) & ~XLR_INFO_MASK;
|
uint8 info = XLogRecGetInfo(xlogreader) & ~XLR_INFO_MASK;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We use relfilenode zero for a given database OID and tablespace OID
|
* We use relfilenode zero for a given database OID and tablespace OID to
|
||||||
* to indicate that all relations with that pair of IDs have been
|
* indicate that all relations with that pair of IDs have been recreated
|
||||||
* recreated if they exist at all. Effectively, we're setting a limit
|
* if they exist at all. Effectively, we're setting a limit block of 0 for
|
||||||
* block of 0 for all such relfilenodes.
|
* all such relfilenodes.
|
||||||
*
|
*
|
||||||
* Technically, this special handling is only needed in the case of
|
* Technically, this special handling is only needed in the case of
|
||||||
* XLOG_DBASE_CREATE_FILE_COPY, because that can create a whole bunch
|
* XLOG_DBASE_CREATE_FILE_COPY, because that can create a whole bunch of
|
||||||
* of relation files in a directory without logging anything
|
* relation files in a directory without logging anything specific to each
|
||||||
* specific to each one. If we didn't mark the whole DB OID/TS OID
|
* one. If we didn't mark the whole DB OID/TS OID combination in some way,
|
||||||
* combination in some way, then a tablespace that was dropped after
|
* then a tablespace that was dropped after the reference backup and
|
||||||
* the reference backup and recreated using the FILE_COPY method prior
|
* recreated using the FILE_COPY method prior to the incremental backup
|
||||||
* to the incremental backup would look just like one that was never
|
* would look just like one that was never touched at all, which would be
|
||||||
* touched at all, which would be catastrophic.
|
* catastrophic.
|
||||||
*
|
*
|
||||||
* But it seems best to adopt this treatment for all records that drop
|
* But it seems best to adopt this treatment for all records that drop or
|
||||||
* or create a DB OID/TS OID combination. That's similar to how we
|
* create a DB OID/TS OID combination. That's similar to how we treat the
|
||||||
* treat the limit block for individual relations, and it's an extra
|
* limit block for individual relations, and it's an extra layer of safety
|
||||||
* layer of safety here. We can never lose data by marking more stuff
|
* here. We can never lose data by marking more stuff as needing to be
|
||||||
* as needing to be backed up in full.
|
* backed up in full.
|
||||||
*/
|
*/
|
||||||
if (info == XLOG_DBASE_CREATE_FILE_COPY)
|
if (info == XLOG_DBASE_CREATE_FILE_COPY)
|
||||||
{
|
{
|
||||||
@ -1136,7 +1136,7 @@ SummarizeDbaseRecord(XLogReaderState *xlogreader, BlockRefTable *brtab)
|
|||||||
{
|
{
|
||||||
xl_dbase_drop_rec *xlrec;
|
xl_dbase_drop_rec *xlrec;
|
||||||
RelFileLocator rlocator;
|
RelFileLocator rlocator;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
xlrec = (xl_dbase_drop_rec *) XLogRecGetData(xlogreader);
|
xlrec = (xl_dbase_drop_rec *) XLogRecGetData(xlogreader);
|
||||||
rlocator.dbOid = xlrec->db_id;
|
rlocator.dbOid = xlrec->db_id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user