File tree Expand file tree Collapse file tree
charts/memgraph-high-availability/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,9 +109,6 @@ spec:
109109 local instance_name="${current_step##* }"
110110 [[ "$show_instances_output" == *"\"${instance_name}\""* ]]
111111 ;;
112- "SET INSTANCE instance_1 TO MAIN")
113- [[ "$show_instances_output" == *"\"instance_1\""* ]] && [[ "$show_instances_output" == *"\"main\""* ]]
114- ;;
115112 *)
116113 return 1
117114 ;;
@@ -143,7 +140,10 @@ spec:
143140 [[ "$output_lc" == *"already a main"* ]] || \
144141 [[ "$output_lc" == *"is already main"* ]] || \
145142 [[ "$output_lc" == *"request forwarded to the leader but leader failed with request processing"* ]]; then
146- if ddl_already_applied "$step"; then
143+ if [[ "$output_lc" == *"already a main"* ]] || [[ "$output_lc" == *"is already main"* ]]; then
144+ echo "ℹ️ ${step} already applied; continuing"
145+ return 0
146+ elif ddl_already_applied "$step"; then
147147 echo "ℹ️ ${step} already applied; continuing"
148148 return 0
149149 fi
You can’t perform that action at this time.
0 commit comments