delete_writing1.sim 549 字节
Newer Older
1 2 3 4 5 6 7 8 9 10
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/exec.sh -n dnode1 -s start
sql connect

sql create database db 
sql create table db.tb (ts timestamp, i int)
sql insert into db.tb values(now, 1)

print ======== start back
S
Shengliang Guan 已提交
11
run_back tsim/db/back_insert.sim
12 13 14 15
sleep 1000

print ======== step1 
$x = 1 	
S
Shengliang Guan 已提交
16
while $x < 10
17 18

    print drop database times $x
S
Shengliang Guan 已提交
19
	sql drop database if exists db
20 21 22
	sql create database db 
	sql create table db.tb (ts timestamp, i int)

S
Shengliang Guan 已提交
23
	sleep 1000
24 25 26 27 28
	
	$x = $x + 1
endw

system sh/exec.sh -n dnode1 -s stop -x SIGINT