pgbackrest.git / summary / log / commit / refs
commit ab26c765d454cd8f757ccc7ada593746dbddae0d
Author: David Steele <david@pgmasters.net>
Date: Wed Apr 18 22:57:45 2018 +0000
Don't copy CFGDEF_NAME_ALT or CFGDEF_INHERIT when processing config option inheritance.
build/lib/pgBackRestBuild/Config/Data.pm | 6 ++++++
doc/xml/release.xml | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/build/lib/pgBackRestBuild/Config/Data.pm b/build/lib/pgBackRestBuild/Config/Data.pm
index 6329efc1f..79a80d931 100644
--- a/build/lib/pgBackRestBuild/Config/Data.pm
+++ b/build/lib/pgBackRestBuild/Config/Data.pm
@@ -2278,6 +2278,12 @@ foreach my $strKey (sort(keys(%hConfigDefine)))
# Copy the option being inherited from
$hConfigDefine{$strKey} = dclone($hConfigDefine{$hConfigDefine{$strKey}{&CFGDEF_INHERIT}});
+ # No need to copy the inheritance key
+ delete($hConfigDefine{$strKey}{&CFGDEF_INHERIT});
+
+ # It makes no sense to inherit alt names - they must be specified for each option
+ delete($hConfigDefine{$strKey}{&CFGDEF_NAME_ALT});
+
# Apply overrides
foreach my $strOptionDef (sort(keys(%{$hConfigDefineOverride})))
{
diff --git a/doc/xml/release.xml b/doc/xml/release.xml
index 3052cdc2f..681855d04 100644
--- a/doc/xml/release.xml
+++ b/doc/xml/release.xml
@@ -75,6 +75,10 @@
<p>Start work on C handle io object and use it to output help.</p>
</release-item>
+ <release-item>
+ <p>Don't copy <id>CFGDEF_NAME_ALT</id> or <id>CFGDEF_INHERIT</id> when processing config option inheritance.</p>
+ </release-item>
+
<release-item>
<p>Split debug and assert code into separate headers. Assert can be used earlier because it only depends on the error-handler and not logging. Add <code>ASSERT()</code> that is preserved in production builds.</p>
</release-item>
[parent: ea4046a607cd]