Skip to content

Commit

Permalink
fix the problem of unbound variable in backup script (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
onlymellb authored and tennix committed Jun 30, 2019
1 parent b6da072 commit 25040b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/tidb-backup/templates/scripts/_start_backup.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fi
--password=${TIDB_PASSWORD} \
--long-query-guard=3600 \
--tidb-force-priority=LOW_PRIORITY \
{{ .Values.backupOptions }} ${snapshot_args}
{{ .Values.backupOptions }} ${snapshot_args:-}

echo "Reset TiKV GC life time to ${gc_life_time}"
/usr/bin/mysql -h${host} -P4000 -u${TIDB_USER} -p${TIDB_PASSWORD} -Nse "update mysql.tidb set variable_value='${gc_life_time}' where variable_name='tikv_gc_life_time';"
Expand Down

0 comments on commit 25040b5

Please sign in to comment.