You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-11-06 08:49:29 +02:00
Remove unused port struct member.
This does not appear to have been used in quite some time and the tests are equally useless because they don't prove the correct port was passed to httpClientNew().
This commit is contained in:
@@ -93,7 +93,6 @@ struct StorageS3
|
||||
unsigned int deleteMax; // Maximum objects that can be deleted in one request
|
||||
StorageS3UriStyle uriStyle; // Path or host style URIs
|
||||
const String *bucketEndpoint; // Set to {bucket}.{endpoint}
|
||||
unsigned int port; // Host port
|
||||
|
||||
// Current signing key and date it is valid for
|
||||
const String *signingKeyDate; // Date of cached signing key (so we know when to regenerate)
|
||||
@@ -846,15 +845,13 @@ storageS3New(
|
||||
.uriStyle = uriStyle,
|
||||
.bucketEndpoint = uriStyle == storageS3UriStyleHost ?
|
||||
strNewFmt("%s.%s", strZ(bucket), strZ(endPoint)) : strDup(endPoint),
|
||||
.port = port,
|
||||
|
||||
// Force the signing key to be generated on the first run
|
||||
.signingKeyDate = YYYYMMDD_STR,
|
||||
};
|
||||
|
||||
// Create the HTTP client used to service requests
|
||||
driver->httpClient = httpClientNew(
|
||||
host == NULL ? driver->bucketEndpoint : host, driver->port, timeout, verifyPeer, caFile, caPath);
|
||||
driver->httpClient = httpClientNew(host == NULL ? driver->bucketEndpoint : host, port, timeout, verifyPeer, caFile, caPath);
|
||||
|
||||
// Create list of redacted headers
|
||||
driver->headerRedactList = strLstNew();
|
||||
|
||||
@@ -216,7 +216,6 @@ testRun(void)
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->region, region, " check region");
|
||||
TEST_RESULT_STR(
|
||||
((StorageS3 *)storage->driver)->bucketEndpoint, strNewFmt("%s.%s", strZ(bucket), strZ(endPoint)), " check host");
|
||||
TEST_RESULT_UINT(((StorageS3 *)storage->driver)->port, 443, " check port");
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->accessKey, accessKey, " check access key");
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->secretAccessKey, secretAccessKey, " check secret access key");
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->securityToken, securityToken, " check security token");
|
||||
@@ -241,7 +240,6 @@ testRun(void)
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->region, region, " check region");
|
||||
TEST_RESULT_STR(
|
||||
((StorageS3 *)storage->driver)->bucketEndpoint, strNewFmt("%s.%s", strZ(bucket), strZ(endPoint)), " check host");
|
||||
TEST_RESULT_UINT(((StorageS3 *)storage->driver)->port, 999, " check port");
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->accessKey, accessKey, " check access key");
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->secretAccessKey, secretAccessKey, " check secret access key");
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->securityToken, securityToken, " check security token");
|
||||
@@ -267,7 +265,6 @@ testRun(void)
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->region, region, " check region");
|
||||
TEST_RESULT_STR(
|
||||
((StorageS3 *)storage->driver)->bucketEndpoint, strNewFmt("%s.%s", strZ(bucket), strZ(endPoint)), " check host");
|
||||
TEST_RESULT_UINT(((StorageS3 *)storage->driver)->port, 7777, " check port");
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->accessKey, accessKey, " check access key");
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->secretAccessKey, secretAccessKey, " check secret access key");
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->securityToken, securityToken, " check security token");
|
||||
@@ -294,7 +291,6 @@ testRun(void)
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->region, region, " check region");
|
||||
TEST_RESULT_STR(
|
||||
((StorageS3 *)storage->driver)->bucketEndpoint, strNewFmt("%s.%s", strZ(bucket), strZ(endPoint)), " check host");
|
||||
TEST_RESULT_UINT(((StorageS3 *)storage->driver)->port, 9001, " check port");
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->accessKey, accessKey, " check access key");
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->secretAccessKey, secretAccessKey, " check secret access key");
|
||||
TEST_RESULT_STR(((StorageS3 *)storage->driver)->securityToken, securityToken, " check security token");
|
||||
|
||||
Reference in New Issue
Block a user