You've already forked pgbackrest
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:
@ -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"/>
|
||||||
|
@ -1840,6 +1840,10 @@ option:
|
|||||||
backup: {}
|
backup: {}
|
||||||
command-role:
|
command-role:
|
||||||
main: {}
|
main: {}
|
||||||
|
depend:
|
||||||
|
option: repo-bundle
|
||||||
|
list:
|
||||||
|
- false
|
||||||
deprecate:
|
deprecate:
|
||||||
hardlink: {}
|
hardlink: {}
|
||||||
|
|
||||||
|
@ -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};
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Reference in New Issue
Block a user