Skip to content

Commit 6662805

Browse files
committed
Fix index translog json
1 parent d0341eb commit 6662805

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/github-backup-utils/ghe-backup-es-rsync

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ log_rsync "END elasticsearch rsync" 1>&3
6060
# Set up a trap to re-enable flushing on exit and remove temp file
6161
cleanup () {
6262
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\"}}" |
6464
ghe-ssh "$host" -- curl -s -XPUT "localhost:9200/_settings" -d @- >/dev/null
6565
}
6666
trap 'cleanup' EXIT
6767
trap 'exit $?' INT # ^C always terminate
6868

6969
# Disable ES flushing and force a flush right now
7070
ghe_verbose "* Disabling ES index flushing ..."
71-
echo '{"index":{"index.translog.flush_threshold_size":"1PB"}}' |
71+
echo '{"index":{"translog.flush_threshold_size":"1PB"}}' |
7272
ghe-ssh "$host" -- curl -s -XPUT "localhost:9200/_settings" -d @- >/dev/null
7373
ghe-ssh "$host" -- curl -s -XPOST "localhost:9200/_flush" >/dev/null
7474

0 commit comments

Comments
 (0)