Skip to content

Commit 66de800

Browse files
authored
fix: weird usepassword:true (#27)
* fix: wierd usepassword:true * chore: sysbench more threads * Revert "chore: sysbench more threads" This reverts commit df893bf.
1 parent 2ae8291 commit 66de800

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

itest.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ test_once_oltp_insert() {
3535
ghostest-primary -uroot -e"DROP DATABASE IF EXISTS db; CREATE DATABASE db;"
3636

3737
primary_port=$(ghostest-primary -uroot -e "select @@port" -ss)
38-
replica_port=$(ghostest-replica -uroot -e "select @@port" -ss)
3938

4039
sysbench \
4140
--mysql-host='127.0.0.1' \
@@ -70,6 +69,8 @@ test_once_oltp_insert() {
7069
--report-interval=10 \
7170
oltp_insert run &
7271

72+
replica_port=$(ghostest-replica -uroot -e "select @@port" -ss)
73+
7374
gh-ost \
7475
--execute \
7576
--max-load=Threads_running=25 \
@@ -116,7 +117,6 @@ test_once_tpcc() {
116117
ghostest-primary -uroot -e"DROP DATABASE IF EXISTS db; CREATE DATABASE db;"
117118

118119
primary_port=$(ghostest-primary -uroot -e "select @@port" -ss)
119-
replica_port=$(ghostest-replica -uroot -e "select @@port" -ss)
120120

121121
/tpcc.lua prepare --mysql-host='127.0.0.1' \
122122
--mysql-port="$primary_port" \
@@ -151,6 +151,8 @@ test_once_tpcc() {
151151
--report-interval=10 \
152152
&
153153

154+
replica_port=$(ghostest-replica -uroot -e "select @@port" -ss)
155+
154156
gh-ost \
155157
--execute \
156158
--max-load=Threads_running=25 \

0 commit comments

Comments
 (0)