Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Update tidb.toml.j2 (#849) (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
liubo0127 authored Jul 24, 2019
1 parent c30e2c1 commit a91d64c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/tidb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ binlog:
# but still provide service.
# ignore-error: false

pessimistic-txn:
pessimistic_txn:
# enable pessimistic transaction.
# enable: false

Expand Down
5 changes: 5 additions & 0 deletions roles/tidb/templates/tidb.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,8 @@ binlog-socket = "{{ pump_socket }}"
{% for item, value in tidb_conf.binlog | dictsort -%}
{{ item }} = {{ value | to_json }}
{% endfor %}

[pessimistic-txn]
{% for item, value in tidb_conf.pessimistic_txn | dictsort -%}
{{ item }} = {{ value | to_json }}
{% endfor %}
2 changes: 1 addition & 1 deletion roles/tidb/vars/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ binlog:
# but still provide service.
ignore-error: false

pessimistic-txn:
pessimistic_txn:
# enable pessimistic transaction.
enable: false

Expand Down

0 comments on commit a91d64c

Please sign in to comment.