Merge pull request #1779 from taosdata/hotfix/uninitialized
initialize SCqCfg structure
This commit is contained in:
commit
72552aa016
|
@ -312,8 +312,6 @@ typedef struct SSqlObj {
|
|||
void (*fp)();
|
||||
void (*fetchFp)();
|
||||
void * param;
|
||||
uint32_t ip;
|
||||
short vnode;
|
||||
int64_t stime;
|
||||
uint32_t queryId;
|
||||
void * pStream;
|
||||
|
|
|
@ -32,6 +32,8 @@ int taosGetFqdn(char *fqdn) {
|
|||
uError("failed to get host name");
|
||||
return -1;
|
||||
}
|
||||
|
||||
free(h);
|
||||
}
|
||||
|
||||
uint32_t taosGetIpFromFqdn(const char *fqdn) {
|
||||
|
|
|
@ -194,9 +194,10 @@ int32_t vnodeOpen(int32_t vnode, char *rootDir) {
|
|||
pVnode->wqueue = dnodeAllocateWqueue(pVnode);
|
||||
pVnode->rqueue = dnodeAllocateRqueue(pVnode);
|
||||
|
||||
SCqCfg cqCfg;
|
||||
SCqCfg cqCfg = {0};
|
||||
sprintf(cqCfg.user, "root");
|
||||
strcpy(cqCfg.pass, tsInternalPass);
|
||||
cqCfg.vgId = vnode;
|
||||
cqCfg.cqWrite = vnodeWriteToQueue;
|
||||
pVnode->cq = cqOpen(pVnode, &cqCfg);
|
||||
|
||||
|
|
Loading…
Reference in New Issue