You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-06-27 00:21:08 +02:00
Fix issue passing --no-config to embedded Perl.
Reported by Ibrahim Edib Kokdemir.
This commit is contained in:
@ -21,6 +21,10 @@ testRun()
|
||||
cfgOptionValidSet(cfgOptCompress, true);
|
||||
cfgOptionSet(cfgOptCompress, cfgSourceParam, varNewBool(true));
|
||||
|
||||
cfgOptionValidSet(cfgOptConfig, true);
|
||||
cfgOptionNegateSet(cfgOptConfig, true);
|
||||
cfgOptionSet(cfgOptConfig, cfgSourceParam, NULL);
|
||||
|
||||
cfgOptionValidSet(cfgOptOnline, true);
|
||||
cfgOptionNegateSet(cfgOptOnline, true);
|
||||
cfgOptionSet(cfgOptOnline, cfgSourceParam, varNewBool(false));
|
||||
@ -30,7 +34,7 @@ testRun()
|
||||
|
||||
cfgOptionValidSet(cfgOptBackupStandby, true);
|
||||
cfgOptionResetSet(cfgOptBackupStandby, true);
|
||||
cfgOptionSet(cfgOptBackupStandby, cfgSourceDefault, varNewBool(false));
|
||||
cfgOptionSet(cfgOptBackupStandby, cfgSourceParam, varNewBool(false));
|
||||
|
||||
cfgOptionValidSet(cfgOptProtocolTimeout, true);
|
||||
cfgOptionSet(cfgOptProtocolTimeout, cfgSourceParam, varNewDbl(1.1));
|
||||
@ -48,9 +52,10 @@ testRun()
|
||||
strPtr(perlOptionJson()),
|
||||
"{"
|
||||
"\"archive-queue-max\":{\"source\":\"param\",\"value\":999999999999},"
|
||||
"\"backup-standby\":{\"reset\":true,\"value\":false},"
|
||||
"\"backup-standby\":{\"source\":\"param\",\"reset\":true,\"value\":false},"
|
||||
"\"compress\":{\"source\":\"param\",\"value\":true},"
|
||||
"\"compress-level\":{\"source\":\"config\",\"value\":3},"
|
||||
"\"config\":{\"source\":\"param\",\"negate\":true},"
|
||||
"\"online\":{\"source\":\"param\",\"negate\":true},"
|
||||
"\"pg1-host\":{\"reset\":true},"
|
||||
"\"protocol-timeout\":{\"source\":\"param\",\"value\":1.1},"
|
||||
|
Reference in New Issue
Block a user