fix taosd crash issue

This commit is contained in:
dapan1121 2021-04-02 18:21:19 +08:00
parent 9a922281ab
commit a1c69e5a07
1 changed files with 3 additions and 1 deletions

View File

@ -326,8 +326,10 @@ void *cqCreate(void *handle, uint64_t uid, int32_t sid, const char* dstTable, ch
pObj->rid = taosAddRef(cqObjRef, pObj);
if(start) {
if(start && pContext->master) {
cqCreateStream(pContext, pObj);
} else {
pObj->pContext = pContext;
}
rid = pObj->rid;