File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ test_once_oltp_insert() {
35
35
ghostest-primary -uroot -e" DROP DATABASE IF EXISTS db; CREATE DATABASE db;"
36
36
37
37
primary_port=$( ghostest-primary -uroot -e " select @@port" -ss)
38
- replica_port=$( ghostest-replica -uroot -e " select @@port" -ss)
39
38
40
39
sysbench \
41
40
--mysql-host=' 127.0.0.1' \
@@ -70,6 +69,8 @@ test_once_oltp_insert() {
70
69
--report-interval=10 \
71
70
oltp_insert run &
72
71
72
+ replica_port=$( ghostest-replica -uroot -e " select @@port" -ss)
73
+
73
74
gh-ost \
74
75
--execute \
75
76
--max-load=Threads_running=25 \
@@ -116,7 +117,6 @@ test_once_tpcc() {
116
117
ghostest-primary -uroot -e" DROP DATABASE IF EXISTS db; CREATE DATABASE db;"
117
118
118
119
primary_port=$( ghostest-primary -uroot -e " select @@port" -ss)
119
- replica_port=$( ghostest-replica -uroot -e " select @@port" -ss)
120
120
121
121
/tpcc.lua prepare --mysql-host=' 127.0.0.1' \
122
122
--mysql-port=" $primary_port " \
@@ -151,6 +151,8 @@ test_once_tpcc() {
151
151
--report-interval=10 \
152
152
&
153
153
154
+ replica_port=$( ghostest-replica -uroot -e " select @@port" -ss)
155
+
154
156
gh-ost \
155
157
--execute \
156
158
--max-load=Threads_running=25 \
You can’t perform that action at this time.
0 commit comments