Skip to content

Commit e7028fa

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Negative seqno need to be considered when comparing seqno" into stable/victoria
2 parents 345e2db + 5bdeef8 commit e7028fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible/roles/mariadb/tasks/recover_cluster.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
shell:
7575
cmd: |
7676
if [[ ! -z {{ hostvars[inventory_hostname]['seqno'] }} && ! -z {{ hostvars[item]['seqno'] }} &&
77-
{{ hostvars[inventory_hostname]['seqno'] }} =~ ^[0-9]+$ && {{ hostvars[item]['seqno'] }} =~ ^[0-9]+$ &&
77+
{{ hostvars[inventory_hostname]['seqno'] }} =~ ^-?[0-9]+$ && {{ hostvars[item]['seqno'] }} =~ ^-?[0-9]+$ &&
7878
{{ hostvars[inventory_hostname]['seqno'] }} -lt {{ hostvars[item]['seqno'] }} ]]; then echo {{ hostvars[item]['seqno'] }}; fi
7979
with_items: "{{ groups['mariadb'] }}"
8080
register: seqno_compare

0 commit comments

Comments
 (0)