提交 4552f9ba 编写于 作者: H Hongze Cheng

fix a problem

上级 4d3a523f
......@@ -163,6 +163,7 @@ int metaOpenDB(SMeta *pMeta) {
return -1;
}
pMeta->pDB = pMetaDb;
return 0;
}
......@@ -236,7 +237,7 @@ int metaSaveTableToDB(SMeta *pMeta, STbCfg *pTbCfg) {
}
// update name.idx
int nameLen;
int nameLen = strlen(pTbCfg->name);
memcpy(buf, pTbCfg->name, nameLen + 1);
((tb_uid_t *)(buf + nameLen + 1))[0] = uid;
pKey = buf;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册