fix bug
This commit is contained in:
parent
cb585812f1
commit
78a8f6dfe4
|
@ -83,9 +83,9 @@ int32_t vmProcessGetVnodeLoadsReq(SMgmtWrapper *pWrapper, SNodeMsg *pReq) {
|
||||||
|
|
||||||
static void vmGenerateVnodeCfg(SCreateVnodeReq *pCreate, SVnodeCfg *pCfg) {
|
static void vmGenerateVnodeCfg(SCreateVnodeReq *pCreate, SVnodeCfg *pCfg) {
|
||||||
pCfg->vgId = pCreate->vgId;
|
pCfg->vgId = pCreate->vgId;
|
||||||
pCfg->wsize = pCreate->cacheBlockSize;
|
pCfg->wsize = pCreate->cacheBlockSize * 1024 * 1024;
|
||||||
pCfg->ssize = pCreate->cacheBlockSize;
|
pCfg->ssize = 1024;
|
||||||
pCfg->lsize = pCreate->cacheBlockSize;
|
pCfg->lsize = 1024 * 1024;
|
||||||
pCfg->isHeapAllocator = true;
|
pCfg->isHeapAllocator = true;
|
||||||
pCfg->ttl = 4;
|
pCfg->ttl = 4;
|
||||||
pCfg->keep = pCreate->daysToKeep0;
|
pCfg->keep = pCreate->daysToKeep0;
|
||||||
|
|
|
@ -288,7 +288,7 @@ _err:
|
||||||
static int vnodeDecodeInfo(uint8_t *pData, SVnodeInfo *pInfo) {
|
static int vnodeDecodeInfo(uint8_t *pData, SVnodeInfo *pInfo) {
|
||||||
SJson *pJson = NULL;
|
SJson *pJson = NULL;
|
||||||
|
|
||||||
pJson = tjsonCreateObject();
|
pJson = tjsonParse(pData);
|
||||||
if (pJson == NULL) {
|
if (pJson == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue