minor changes
This commit is contained in:
parent
c978eb12ff
commit
359d8427fc
|
@ -92,6 +92,10 @@ static int32_t mndRestoreWal(SMnode *pMnode) {
|
|||
goto WAL_RESTORE_OVER;
|
||||
}
|
||||
|
||||
if (walCommit(pWal, sdbVer) != 0) {
|
||||
goto WAL_RESTORE_OVER;
|
||||
}
|
||||
|
||||
if (walBeginSnapshot(pWal, sdbVer) < 0) {
|
||||
goto WAL_RESTORE_OVER;
|
||||
}
|
||||
|
@ -99,7 +103,6 @@ static int32_t mndRestoreWal(SMnode *pMnode) {
|
|||
if (walEndSnapshot(pWal) < 0) {
|
||||
goto WAL_RESTORE_OVER;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
code = 0;
|
||||
|
|
|
@ -152,6 +152,7 @@ print =============== restart
|
|||
system sh/exec.sh -n dnode1 -s stop -x SIGKILL
|
||||
system sh/exec.sh -n dnode1 -s start
|
||||
|
||||
print =============== show databases
|
||||
sql show databases
|
||||
if $rows != 1 then
|
||||
return -1
|
||||
|
@ -166,7 +167,10 @@ if $rows != 4 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
print =============== create databases
|
||||
sql create database d5 vgroups 5;
|
||||
|
||||
print =============== show vgroups
|
||||
sql use d5
|
||||
sql show vgroups
|
||||
if $rows != 5 then
|
||||
|
|
Loading…
Reference in New Issue