30 lines
529 B
Plaintext
30 lines
529 B
Plaintext
system sh/stop_dnodes.sh
|
|
system sh/deploy.sh -n dnode1 -i 1
|
|
system sh/exec.sh -n dnode1 -s start
|
|
sql connect
|
|
|
|
sql (select server_status()) union all (select server_status())
|
|
if $rows != 2 then
|
|
return -1
|
|
endi
|
|
|
|
if $data00 != 1 then
|
|
return -1
|
|
endi
|
|
|
|
if $data10 != 1 then
|
|
return -1
|
|
endi
|
|
|
|
sql (select client_version()) union all (select server_version())
|
|
if $rows != 2 then
|
|
return -1
|
|
endi
|
|
|
|
sql (select database()) union all (select database())
|
|
if $rows != 2 then
|
|
return -1
|
|
endi
|
|
|
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|