mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-14 10:13:05 +02:00
Fix typos in variable names.
Contributed by Josh Soref.
This commit is contained in:
parent
4a88791a0a
commit
8074ca6a26
@ -406,7 +406,7 @@ removeExpiredArchive(InfoBackup *infoBackup)
|
||||
}
|
||||
|
||||
// If we get here, then a local backup was found for retention
|
||||
StringList *localBackupArchiveRententionList = strLstNew();
|
||||
StringList *localBackupArchiveRetentionList = strLstNew();
|
||||
|
||||
// If the archive retention is less than or equal to the number of all backups, then perform selective
|
||||
// expiration
|
||||
@ -423,7 +423,7 @@ removeExpiredArchive(InfoBackup *infoBackup)
|
||||
strLstGet(globalBackupArchiveRetentionList, globalIdx),
|
||||
strLstGet(localBackupRetentionList, localIdx)) == 0)
|
||||
{
|
||||
strLstAdd(localBackupArchiveRententionList, strLstGet(localBackupRetentionList, localIdx));
|
||||
strLstAdd(localBackupArchiveRetentionList, strLstGet(localBackupRetentionList, localIdx));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -437,15 +437,15 @@ removeExpiredArchive(InfoBackup *infoBackup)
|
||||
LOG_INFO(
|
||||
"full backup total < %u - using oldest full backup for %s archive retention", archiveRetention,
|
||||
strPtr(archiveId));
|
||||
strLstAdd(localBackupArchiveRententionList, strLstGet(localBackupRetentionList, 0));
|
||||
strLstAdd(localBackupArchiveRetentionList, strLstGet(localBackupRetentionList, 0));
|
||||
}
|
||||
|
||||
// If no local backups were found as part of retention then set the backup archive retention to the newest
|
||||
// backup so that the database is fully recoverable (can be recovered from the last backup through pitr)
|
||||
if (strLstSize(localBackupArchiveRententionList) == 0)
|
||||
if (strLstSize(localBackupArchiveRetentionList) == 0)
|
||||
{
|
||||
strLstAdd(
|
||||
localBackupArchiveRententionList,
|
||||
localBackupArchiveRetentionList,
|
||||
strLstGet(localBackupRetentionList, strLstSize(localBackupRetentionList) - 1));
|
||||
}
|
||||
|
||||
@ -458,7 +458,7 @@ removeExpiredArchive(InfoBackup *infoBackup)
|
||||
InfoBackupData archiveIdBackup = infoBackupData(infoBackup, infoBackupIdx);
|
||||
|
||||
// If this is the backup selected for retention, store its data
|
||||
if (strCmp(archiveIdBackup.backupLabel, strLstGet(localBackupArchiveRententionList, 0)) == 0)
|
||||
if (strCmp(archiveIdBackup.backupLabel, strLstGet(localBackupArchiveRetentionList, 0)) == 0)
|
||||
archiveRetentionBackup = infoBackupData(infoBackup, infoBackupIdx);
|
||||
|
||||
// If this is a backup associated with this archive Id, then add it to the list to check
|
||||
|
@ -482,13 +482,13 @@ formatTextDb(const KeyValue *stanzaInfo, String *resultStr)
|
||||
backupResult, " timestamp start/stop: %s / %s\n", timeBufferStart, timeBufferStop);
|
||||
strCat(backupResult, " wal start/stop: ");
|
||||
|
||||
KeyValue *archiveDBackupInfo = varKv(kvGet(backupInfo, KEY_ARCHIVE_VAR));
|
||||
KeyValue *archiveBackupInfo = varKv(kvGet(backupInfo, KEY_ARCHIVE_VAR));
|
||||
|
||||
if (kvGet(archiveDBackupInfo, KEY_START_VAR) != NULL &&
|
||||
kvGet(archiveDBackupInfo, KEY_STOP_VAR) != NULL)
|
||||
if (kvGet(archiveBackupInfo, KEY_START_VAR) != NULL &&
|
||||
kvGet(archiveBackupInfo, KEY_STOP_VAR) != NULL)
|
||||
{
|
||||
strCatFmt(backupResult, "%s / %s\n", strPtr(varStr(kvGet(archiveDBackupInfo, KEY_START_VAR))),
|
||||
strPtr(varStr(kvGet(archiveDBackupInfo, KEY_STOP_VAR))));
|
||||
strCatFmt(backupResult, "%s / %s\n", strPtr(varStr(kvGet(archiveBackupInfo, KEY_START_VAR))),
|
||||
strPtr(varStr(kvGet(archiveBackupInfo, KEY_STOP_VAR))));
|
||||
}
|
||||
else
|
||||
strCat(backupResult, "n/a\n");
|
||||
|
Loading…
Reference in New Issue
Block a user