File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,15 +60,15 @@ log_rsync "END elasticsearch rsync" 1>&3
60
60
# Set up a trap to re-enable flushing on exit and remove temp file
61
61
cleanup () {
62
62
ghe_verbose " * Enabling ES index flushing ..."
63
- echo " {\" index\" :{\" index. translog.flush_threshold_size\" :\" $current_threshold \" }}" |
63
+ echo " {\" index\" :{\" translog.flush_threshold_size\" :\" $current_threshold \" }}" |
64
64
ghe-ssh " $host " -- curl -s -XPUT " localhost:9200/_settings" -d @- > /dev/null
65
65
}
66
66
trap ' cleanup' EXIT
67
67
trap ' exit $?' INT # ^C always terminate
68
68
69
69
# Disable ES flushing and force a flush right now
70
70
ghe_verbose " * Disabling ES index flushing ..."
71
- echo ' {"index":{"index. translog.flush_threshold_size":"1PB"}}' |
71
+ echo ' {"index":{"translog.flush_threshold_size":"1PB"}}' |
72
72
ghe-ssh " $host " -- curl -s -XPUT " localhost:9200/_settings" -d @- > /dev/null
73
73
ghe-ssh " $host " -- curl -s -XPOST " localhost:9200/_flush" > /dev/null
74
74
You can’t perform that action at this time.
0 commit comments