You've already forked pgbackrest
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:
@ -195,7 +195,6 @@ typedef struct ArchivePushCheckResult
|
|||||||
{
|
{
|
||||||
unsigned int pgVersion; // PostgreSQL version
|
unsigned int pgVersion; // PostgreSQL version
|
||||||
uint64_t pgSystemId; // PostgreSQL system id
|
uint64_t pgSystemId; // PostgreSQL system id
|
||||||
unsigned int pgWalSegmentSize; // PostgreSQL WAL segment size
|
|
||||||
String *archiveId; // Archive id for current pg version
|
String *archiveId; // Archive id for current pg version
|
||||||
String *archiveCipherPass; // Archive cipher passphrase
|
String *archiveCipherPass; // Archive cipher passphrase
|
||||||
} ArchivePushCheckResult;
|
} ArchivePushCheckResult;
|
||||||
@ -237,7 +236,6 @@ archivePushCheck(CipherType cipherType, const String *cipherPass)
|
|||||||
{
|
{
|
||||||
result.pgVersion = controlInfo.version;
|
result.pgVersion = controlInfo.version;
|
||||||
result.pgSystemId = controlInfo.systemId;
|
result.pgSystemId = controlInfo.systemId;
|
||||||
result.pgWalSegmentSize = controlInfo.walSegmentSize;
|
|
||||||
result.archiveId = strDup(archiveId);
|
result.archiveId = strDup(archiveId);
|
||||||
result.archiveCipherPass = strDup(infoArchiveCipherPass(info));
|
result.archiveCipherPass = strDup(infoArchiveCipherPass(info));
|
||||||
}
|
}
|
||||||
|
@ -167,7 +167,6 @@ testRun(void)
|
|||||||
|
|
||||||
TEST_RESULT_UINT(result.pgVersion, PG_VERSION_96, "check pg version");
|
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.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.archiveId, "9.6-1", "check archive id");
|
||||||
TEST_RESULT_STR_Z(result.archiveCipherPass, NULL, "check archive cipher pass (not set in this test)");
|
TEST_RESULT_STR_Z(result.archiveCipherPass, NULL, "check archive cipher pass (not set in this test)");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user