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

Update storage module to use StringIds.

Use StringIds for the storage types (e.g. STORAGE_S3_TYPE) and configuration settings, e.g. cfgOptS3KeyType.

Also add new config functions and harness config functions to support StringIds.
This commit is contained in:
David Steele
2021-04-23 13:19:47 -04:00
committed by GitHub
parent aa72c19a83
commit 6cc521b6b2
49 changed files with 235 additions and 203 deletions

View File

@ -169,7 +169,7 @@ testRun(void)
storageHelper.storageRepo = memNew(sizeof(Storage *));
storageHelper.storageRepo[0] = storageNew(
STRDEF("TEST"), STRDEF("/"), 0, 0, false, NULL, &driver, driver.interface);
strIdFromZ(stringIdBit6, "test"), STRDEF("/"), 0, 0, false, NULL, &driver, driver.interface);
// Setup handler for remote storage protocol
IoRead *read = ioFdReadNew(strNew("storage server read"), HARNESS_FORK_CHILD_READ(), 60000);