Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add a case of Mariadb for dm_upstream_switch #10735

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test
  • Loading branch information
okJiang committed Mar 7, 2024
commit 0289253cba73bdfaf69d4d651fcf12935c643513
5 changes: 0 additions & 5 deletions dm/tests/upstream_switch_mariadb/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ function change_master_to_pos() {

function change_master_to_gtid() {
exec_sql $1 "stop slave;"
if [ "$1" == "$master_8_host" ]; then
exec_sql $1 "SET GLOBAL gtid_slave_pos = '2-2-1';"
else
exec_sql $1 "SET GLOBAL gtid_slave_pos = '1-1-1';"
fi
exec_sql $1 "change master to master_host='$2',master_user='root',master_password='123456',master_use_gtid=slave_pos;"
exec_sql $1 "start slave;"
}
Expand Down