Skip to content

Commit

Permalink
Fix --target-action and --recovery-option options being reported as i…
Browse files Browse the repository at this point in the history
…nvalid when restoring with --type=immediate.

Reported by Brad Nicholson.
  • Loading branch information
dwsteele committed Jul 4, 2018
1 parent 327e7c5 commit ca2f8af
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/xml/release.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@

<p>Fix directory syncs running recursively when only the specified directory should be synced.</p>
</release-item>

<release-item>
<release-item-contributor-list>
<release-item-ideator id="nicholson.brad"/>
</release-item-contributor-list>

<p>Fix <br-option>--target-action</br-option> and <br-option>--recovery-option</br-option> options being reported as invalid when restoring with <br-option>--type=immediate</br-option>.</p>
</release-item>
</release-bug-list>

<release-improvement-list>
Expand Down Expand Up @@ -3999,6 +4007,11 @@
<contributor-id type="github">jmccormick2001</contributor-id>
</contributor>

<contributor id="nicholson.brad">
<contributor-name-display>Brad Nicholson</contributor-name-display>
<contributor-id type="github">bradnicholson</contributor-id>
</contributor>

<contributor id="nullmeier.markus">
<contributor-name-display>Markus Nullmeier</contributor-name-display>
<contributor-id type="github">mnullmei</contributor-id>
Expand Down
2 changes: 2 additions & 0 deletions lib/pgBackRest/Config/Data.pm
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ my %hConfigDefine =
&CFGDEF_DEPEND_OPTION => CFGOPT_TYPE,
&CFGDEF_DEPEND_LIST =>
[
&CFGOPTVAL_RESTORE_TYPE_IMMEDIATE,
&CFGOPTVAL_RESTORE_TYPE_NAME,
&CFGOPTVAL_RESTORE_TYPE_TIME,
&CFGOPTVAL_RESTORE_TYPE_XID,
Expand Down Expand Up @@ -1695,6 +1696,7 @@ my %hConfigDefine =
&CFGDEF_DEPEND_LIST =>
[
&CFGOPTVAL_RESTORE_TYPE_DEFAULT,
&CFGOPTVAL_RESTORE_TYPE_IMMEDIATE,
&CFGOPTVAL_RESTORE_TYPE_NAME,
&CFGOPTVAL_RESTORE_TYPE_TIME,
&CFGOPTVAL_RESTORE_TYPE_XID,
Expand Down
2 changes: 2 additions & 0 deletions src/config/define.auto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,7 @@ ConfigDefineOptionData configDefineOptionData[] = CFGDEFDATA_OPTION_LIST
(
cfgDefOptType,
"default",
"immediate",
"name",
"time",
"xid"
Expand Down Expand Up @@ -2598,6 +2599,7 @@ ConfigDefineOptionData configDefineOptionData[] = CFGDEFDATA_OPTION_LIST
CFGDEFDATA_OPTION_OPTIONAL_DEPEND_LIST
(
cfgDefOptType,
"immediate",
"name",
"time",
"xid"
Expand Down

0 comments on commit ca2f8af

Please sign in to comment.