minor changes
This commit is contained in:
parent
a098ad9c33
commit
f3217b9706
|
@ -211,8 +211,8 @@ static int32_t mnodeCreateRootAcct() {
|
||||||
strcpy(pAcct->user, TSDB_DEFAULT_USER);
|
strcpy(pAcct->user, TSDB_DEFAULT_USER);
|
||||||
taosEncryptPass((uint8_t *)TSDB_DEFAULT_PASS, strlen(TSDB_DEFAULT_PASS), pAcct->pass);
|
taosEncryptPass((uint8_t *)TSDB_DEFAULT_PASS, strlen(TSDB_DEFAULT_PASS), pAcct->pass);
|
||||||
pAcct->cfg = (SAcctCfg){
|
pAcct->cfg = (SAcctCfg){
|
||||||
.maxUsers = 10,
|
.maxUsers = 128,
|
||||||
.maxDbs = 64,
|
.maxDbs = 128,
|
||||||
.maxTimeSeries = INT32_MAX,
|
.maxTimeSeries = INT32_MAX,
|
||||||
.maxConnections = 1024,
|
.maxConnections = 1024,
|
||||||
.maxStreams = 1000,
|
.maxStreams = 1000,
|
||||||
|
|
|
@ -115,6 +115,10 @@ static void *monitorThreadFunc(void *param) {
|
||||||
monitorDebug("starting to initialize monitor module ...");
|
monitorDebug("starting to initialize monitor module ...");
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
static int32_t accessTimes = 0;
|
||||||
|
accessTimes++;
|
||||||
|
taosMsleep(1000);
|
||||||
|
|
||||||
if (tsMonitor.quiting) {
|
if (tsMonitor.quiting) {
|
||||||
tsMonitor.state = MON_STATE_NOT_INIT;
|
tsMonitor.state = MON_STATE_NOT_INIT;
|
||||||
monitorInfo("monitor thread will quit, for taosd is quiting");
|
monitorInfo("monitor thread will quit, for taosd is quiting");
|
||||||
|
@ -126,11 +130,7 @@ static void *monitorThreadFunc(void *param) {
|
||||||
if (tsMonitor.start == 0) {
|
if (tsMonitor.start == 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int32_t accessTimes = 0;
|
|
||||||
accessTimes++;
|
|
||||||
taosMsleep(1000);
|
|
||||||
|
|
||||||
if (dnodeGetDnodeId() <= 0) {
|
if (dnodeGetDnodeId() <= 0) {
|
||||||
monitorDebug("dnode not initialized, waiting for 3000 ms to start monitor module");
|
monitorDebug("dnode not initialized, waiting for 3000 ms to start monitor module");
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue