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:
parent
298cc4d5e5
commit
7f263dceb7
@ -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()
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user