change default config
This commit is contained in:
parent
ade2f322a0
commit
03b698d8ae
|
@ -1477,7 +1477,7 @@ static int32_t taosCfgDynamicOptionsForServer(SConfig *pCfg, char *name) {
|
||||||
{"supportVnodes", &tsNumOfSupportVnodes},
|
{"supportVnodes", &tsNumOfSupportVnodes},
|
||||||
};
|
};
|
||||||
|
|
||||||
if (taosCfgSetOption(debugOptions, tListLen(debugOptions), pItem, true) != 0) {
|
if (taosCfgSetOption(debugOptions, tListLen(debugOptions), pItem, true) != 0) {
|
||||||
taosCfgSetOption(options, tListLen(options), pItem, false);
|
taosCfgSetOption(options, tListLen(options), pItem, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -366,8 +366,12 @@ int32_t streamSnapRead(SStreamSnapReader* pReader, uint8_t** ppData, int64_t* si
|
||||||
int32_t code = 0;
|
int32_t code = 0;
|
||||||
SStreamSnapHandle* pHandle = &pReader->handle;
|
SStreamSnapHandle* pHandle = &pReader->handle;
|
||||||
int32_t idx = pHandle->currIdx;
|
int32_t idx = pHandle->currIdx;
|
||||||
|
|
||||||
SBackendSnapFile2* pSnapFile = taosArrayGet(pHandle->pDbSnapSet, idx);
|
SBackendSnapFile2* pSnapFile = taosArrayGet(pHandle->pDbSnapSet, idx);
|
||||||
SBackendFileItem* item = NULL;
|
if (pSnapFile == NULL) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
SBackendFileItem* item = NULL;
|
||||||
|
|
||||||
_NEXT:
|
_NEXT:
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ class TDTestCase:
|
||||||
tdSql.query("use test")
|
tdSql.query("use test")
|
||||||
tdSql.query("create snode on dnode 4")
|
tdSql.query("create snode on dnode 4")
|
||||||
tdSql.query("create stream if not exists s1 trigger at_once ignore expired 0 ignore update 0 fill_history 1 into st1 as select _wstart,sum(voltage),groupid from meters partition by groupid interval(2s)")
|
tdSql.query("create stream if not exists s1 trigger at_once ignore expired 0 ignore update 0 fill_history 1 into st1 as select _wstart,sum(voltage),groupid from meters partition by groupid interval(2s)")
|
||||||
tdLog.debug("========create stream useing snode and insert data ok========")
|
tdLog.debug("========create stream using snode and insert data ok========")
|
||||||
time.sleep(60)
|
time.sleep(60)
|
||||||
|
|
||||||
tdDnodes = cluster.dnodes
|
tdDnodes = cluster.dnodes
|
||||||
|
|
Loading…
Reference in New Issue