提交 48944241 编写于 作者: H Hui Li

[modify cases]

上级 c3eb96f0
...@@ -10,7 +10,9 @@ $preBinary = ' . client-06- ...@@ -10,7 +10,9 @@ $preBinary = ' . client-06-
$numPerUpdateTbl = 2000 $numPerUpdateTbl = 2000
############################################################### ###############################################################
$totalRows = 0 $totalRows = 0
$dropTblStart = $tblStart
$dropTblEnd = $dropTblStart + $numPerUpdateTbl
sql connect sql connect
...@@ -20,7 +22,7 @@ sql create database if not exists $db replica 2 ...@@ -20,7 +22,7 @@ sql create database if not exists $db replica 2
sql use $db sql use $db
init_lable: init_lable:
print ================ create table $tb (ts timestamp, c1 int, c2 binary(16)) print ================ create table $tb[from $tblStart to $tblEnd] (ts timestamp, c1 int, c2 binary(16))
$i = $tblStart $i = $tblStart
while $i < $tblEnd while $i < $tblEnd
...@@ -30,8 +32,8 @@ while $i < $tblEnd ...@@ -30,8 +32,8 @@ while $i < $tblEnd
$i = $i + 1 $i = $i + 1
endw endw
$dropTblStart = $tblStart $dropTblStart = $dropTblEnd
$dropTblEnd = $tblStart + $numPerUpdateTbl $dropTblEnd = $dropTblStart + $numPerUpdateTbl
$tblStart = $tblEnd $tblStart = $tblEnd
$tblEnd = $tblEnd + $numPerUpdateTbl $tblEnd = $tblEnd + $numPerUpdateTbl
...@@ -44,8 +46,8 @@ $loopCnt = 0 ...@@ -44,8 +46,8 @@ $loopCnt = 0
loop_run: loop_run:
print ================ client-06 start loop insert data ( loopCnt: $loopCnt ) print ================ client-06 start loop insert data ( loopCnt: $loopCnt )
$i = $dropTblStart $i = $dropTblStart
while $i < $tblEnd while $i < $tblStart
$tb = tb . $i $tb = tb . $i
$c2Binary = $preBinary . $i $c2Binary = $preBinary . $i
...@@ -78,8 +80,8 @@ endi ...@@ -78,8 +80,8 @@ endi
$loopCnt = $loopCnt + 1 $loopCnt = $loopCnt + 1
if $loopCnt > 100 then if $loopCnt > 5 then
print ================ client-06 drop table from $dropTblStart to $dropTblEnd
$i = $dropTblStart $i = $dropTblStart
while $i < $dropTblEnd while $i < $dropTblEnd
$tb = tb . $i $tb = tb . $i
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册