Rename some vars.
This commit is contained in:
parent
c1732ba41d
commit
c3e025713b
|
@ -319,16 +319,16 @@ int32_t mndInitWriteCfg(SMnode *pMnode) {
|
||||||
|
|
||||||
for (int i = 0; i < sz; ++i) {
|
for (int i = 0; i < sz; ++i) {
|
||||||
SConfigItem *item = taosArrayGet(taosGetGlobalCfg(tsCfg), i);
|
SConfigItem *item = taosArrayGet(taosGetGlobalCfg(tsCfg), i);
|
||||||
SConfigObj pObj;
|
SConfigObj obj;
|
||||||
if ((code = mndInitConfigObj(item, &pObj)) != 0) {
|
if ((code = mndInitConfigObj(item, &obj)) != 0) {
|
||||||
goto _OVER;
|
goto _OVER;
|
||||||
}
|
}
|
||||||
if ((code = mndSetCreateConfigCommitLogs(pTrans, &pObj)) != 0) {
|
if ((code = mndSetCreateConfigCommitLogs(pTrans, &obj)) != 0) {
|
||||||
mError("failed to init mnd config:%s, since %s", item->name, tstrerror(code));
|
mError("failed to init mnd config:%s, since %s", item->name, tstrerror(code));
|
||||||
tFreeSConfigObj(&pObj);
|
tFreeSConfigObj(&obj);
|
||||||
goto _OVER;
|
goto _OVER;
|
||||||
}
|
}
|
||||||
tFreeSConfigObj(&pObj);
|
tFreeSConfigObj(&obj);
|
||||||
}
|
}
|
||||||
if ((code = mndTransPrepare(pMnode, pTrans)) != 0) goto _OVER;
|
if ((code = mndTransPrepare(pMnode, pTrans)) != 0) goto _OVER;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue