1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-13 01:00:23 +02:00

Remove unused struct member.

Perhaps this was intended to verify the WAL size but was never implemented.

Verifying the WAL size is probably a good idea so this member may be added back if the feature is implemented.
This commit is contained in:
David Steele
2020-05-01 09:08:37 -04:00
parent 22ba1f02ce
commit 28ab65df10
2 changed files with 0 additions and 3 deletions

View File

@ -195,7 +195,6 @@ typedef struct ArchivePushCheckResult
{
unsigned int pgVersion; // PostgreSQL version
uint64_t pgSystemId; // PostgreSQL system id
unsigned int pgWalSegmentSize; // PostgreSQL WAL segment size
String *archiveId; // Archive id for current pg version
String *archiveCipherPass; // Archive cipher passphrase
} ArchivePushCheckResult;
@ -237,7 +236,6 @@ archivePushCheck(CipherType cipherType, const String *cipherPass)
{
result.pgVersion = controlInfo.version;
result.pgSystemId = controlInfo.systemId;
result.pgWalSegmentSize = controlInfo.walSegmentSize;
result.archiveId = strDup(archiveId);
result.archiveCipherPass = strDup(infoArchiveCipherPass(info));
}

View File

@ -167,7 +167,6 @@ testRun(void)
TEST_RESULT_UINT(result.pgVersion, PG_VERSION_96, "check pg version");
TEST_RESULT_UINT(result.pgSystemId, 0xFACEFACEFACEFACE, "check pg system id");
TEST_RESULT_UINT(result.pgWalSegmentSize, 16 * 1024 * 1024, "check wal segment size");
TEST_RESULT_STR_Z(result.archiveId, "9.6-1", "check archive id");
TEST_RESULT_STR_Z(result.archiveCipherPass, NULL, "check archive cipher pass (not set in this test)");
}