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

Disable repo-hardlink option when repo-bundle option is enabled.

Hardlinking will not work with bundles because files are not stored individually.
This commit is contained in:
David Steele
2022-03-22 09:02:33 -06:00
parent 7afaac0a3d
commit fe9fd2ff2d
4 changed files with 15 additions and 0 deletions

View File

@ -103,6 +103,7 @@
<commit subject="Rename bundle-* options to repo-bundle-*."> <commit subject="Rename bundle-* options to repo-bundle-*.">
<github-pull-request id="1694"/> <github-pull-request id="1694"/>
</commit> </commit>
<commit subject="Disable repo-hardlink option when repo-bundle option is enabled."/>
<release-item-contributor-list> <release-item-contributor-list>
<release-item-contributor id="david.steele"/> <release-item-contributor id="david.steele"/>

View File

@ -1840,6 +1840,10 @@ option:
backup: {} backup: {}
command-role: command-role:
main: {} main: {}
depend:
option: repo-bundle
list:
- false
deprecate: deprecate:
hardlink: {} hardlink: {}

View File

@ -190,6 +190,10 @@ backupInit(const InfoBackup *infoBackup)
cfgOptionSet(cfgOptBackupStandby, cfgSourceParam, BOOL_FALSE_VAR); cfgOptionSet(cfgOptBackupStandby, cfgSourceParam, BOOL_FALSE_VAR);
} }
// If hardlink is not set (because bundles are enabled) then set to false
if (!cfgOptionTest(cfgOptRepoHardlink))
cfgOptionSet(cfgOptRepoHardlink, cfgSourceDefault, BOOL_FALSE_VAR);
// Get database info when online // Get database info when online
PgControl pgControl = {0}; PgControl pgControl = {0};

View File

@ -5466,6 +5466,12 @@ static const ParseRuleOption parseRuleOption[CFG_OPTION_TOTAL] =
( (
PARSE_RULE_OPTIONAL_GROUP PARSE_RULE_OPTIONAL_GROUP
( (
PARSE_RULE_OPTIONAL_DEPEND
(
PARSE_RULE_VAL_OPT(cfgOptRepoBundle),
PARSE_RULE_VAL_BOOL_FALSE,
),
PARSE_RULE_OPTIONAL_DEFAULT PARSE_RULE_OPTIONAL_DEFAULT
( (
PARSE_RULE_VAL_BOOL_FALSE, PARSE_RULE_VAL_BOOL_FALSE,