1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00

Fix inverted cfgOption*() calls.

These currently work because repoIdx is always 0.
This commit is contained in:
David Steele 2021-01-15 08:30:56 -05:00
parent 298cc4d5e5
commit 7f263dceb7
2 changed files with 2 additions and 2 deletions

View File

@ -631,7 +631,7 @@ cfgOptionIdxHostPort(ConfigOption optionId, unsigned int optionIdx, unsigned int
String *result = NULL;
// Proceed if option is valid and has a value
if (cfgOptionTest(optionId))
if (cfgOptionIdxTest(optionId, optionIdx))
{
MEM_CONTEXT_TEMP_BEGIN()
{

View File

@ -346,7 +346,7 @@ storageRepoGet(unsigned int repoIdx, bool write)
{
result = storageRemoteNew(
STORAGE_MODE_FILE_DEFAULT, STORAGE_MODE_PATH_DEFAULT, write, storageRepoPathExpression,
protocolRemoteGet(protocolStorageTypeRepo, repoIdx), cfgOptionIdxUInt(cfgOptCompressLevelNetwork, repoIdx));
protocolRemoteGet(protocolStorageTypeRepo, repoIdx), cfgOptionUInt(cfgOptCompressLevelNetwork));
}
// Use Azure storage
else