提交 37d39c9e 编写于 作者: S stephenkgu

[TD-2255]<fix>: fix incorrect log variable and sim test cases

上级 c1b46153
......@@ -250,7 +250,7 @@ static int32_t mnodeCheckDbCfg(SDbCfg *pCfg) {
}
if (pCfg->daysToKeep2 < TSDB_MIN_KEEP || pCfg->daysToKeep2 > pCfg->daysToKeep) {
mError("invalid db option daysToKeep2:%d valid range: [%d, %d]", pCfg->daysToKeep, TSDB_MIN_KEEP, pCfg->daysToKeep);
mError("invalid db option daysToKeep2:%d valid range: [%d, %d]", pCfg->daysToKeep2, TSDB_MIN_KEEP, pCfg->daysToKeep);
return TSDB_CODE_MND_INVALID_DB_OPTION_KEEP;
}
......
......@@ -115,31 +115,31 @@ if $data7_db != 20,20,20 then
return -1
endi
sql alter database db keep 10
sql alter database db keep 20
sql show databases
print keep $data7_db
if $data7_db != 20,20,10 then
if $data7_db != 20,20,20 then
return -1
endi
sql alter database db keep 20
sql alter database db keep 30
sql show databases
print keep $data7_db
if $data7_db != 20,20,20 then
if $data7_db != 20,20,30 then
return -1
endi
sql alter database db keep 30
sql alter database db keep 40
sql show databases
print keep $data7_db
if $data7_db != 20,20,30 then
if $data7_db != 20,20,40 then
return -1
endi
sql alter database db keep 40
sql alter database db keep 30
sql alter database db keep 20
sql alter database db keep 10
sql_error alter database db keep 10
sql_error alter database db keep 9
sql_error alter database db keep 1
sql alter database db keep 0
......@@ -277,4 +277,4 @@ sql_error alter database db prec 'us'
print ============== step status
sql_error alter database db status 'delete'
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
system sh/exec.sh -n dnode1 -s stop -x SIGINT
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册