minor changes

This commit is contained in:
Shengliang Guan 2022-01-19 21:52:54 -08:00
parent c978eb12ff
commit 359d8427fc
2 changed files with 8 additions and 1 deletions

View File

@ -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;

View File

@ -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