From 3f30b3c5b4460b00516de7d9dae47ecd0599ad3f Mon Sep 17 00:00:00 2001 From: Benguang Zhao Date: Tue, 21 Jun 2022 17:38:18 +0800 Subject: [PATCH] fix: change the default maxDbs of root acct to INT16_MAX --- src/mnode/src/mnodeAcct.c | 2 +- tests/script/unique/account/paras.sim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mnode/src/mnodeAcct.c b/src/mnode/src/mnodeAcct.c index 64cfa28917..0ec330841c 100644 --- a/src/mnode/src/mnodeAcct.c +++ b/src/mnode/src/mnodeAcct.c @@ -215,7 +215,7 @@ static int32_t mnodeCreateRootAcct() { taosEncryptPass((uint8_t *)TSDB_DEFAULT_PASS, strlen(TSDB_DEFAULT_PASS), pAcct->pass); pAcct->cfg = (SAcctCfg){ .maxUsers = 128, - .maxDbs = 128, + .maxDbs = INT16_MAX, .maxTimeSeries = INT32_MAX, .maxConnections = 1024, .maxStreams = 1000, diff --git a/tests/script/unique/account/paras.sim b/tests/script/unique/account/paras.sim index 102f5b6a38..77e010f5bd 100644 --- a/tests/script/unique/account/paras.sim +++ b/tests/script/unique/account/paras.sim @@ -17,7 +17,7 @@ endi if $data02 != 3/128 then return -1 endi -if $data03 != 0/128 then +if $data03 != 0/32767 then return -1 endi if $data04 != 0/2147483647 then @@ -111,4 +111,4 @@ if $data16 != 0.000/10.000 then return -1 endi -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 -- GitLab