Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0cd9e35

Browse files
committed
[Issue #129] minor fix
1 parent 20d8820 commit 0cd9e35

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/restore.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,9 @@ create_recovery_conf(time_t backup_id,
933933

934934
if (rt->target_action)
935935
fio_fprintf(fp, "recovery_target_action = '%s'\n", rt->target_action);
936+
else
937+
/* default recovery_target_action is 'pause' */
938+
fio_fprintf(fp, "recovery_target_action = '%s'\n", "pause");
936939
}
937940

938941
if (params->restore_as_replica)
@@ -1200,11 +1203,6 @@ parseRecoveryTargetOptions(const char *target_time,
12001203

12011204
rt->target_action = target_action;
12021205
}
1203-
else
1204-
{
1205-
/* Default recovery target action is pause */
1206-
rt->target_action = "pause";
1207-
}
12081206

12091207
/* More than one mutually exclusive option was defined. */
12101208
if (recovery_target_specified > 1)

0 commit comments

Comments
 (0)