提交 0fb0da60 编写于 作者: wmmhello's avatar wmmhello

fix bug if add table into metaindex error

上级 74551380
...@@ -121,11 +121,13 @@ int tsdbCreateTable(STsdbRepo *repo, STableCfg *pCfg) { ...@@ -121,11 +121,13 @@ int tsdbCreateTable(STsdbRepo *repo, STableCfg *pCfg) {
if (newSuper) { if (newSuper) {
if (tsdbAddTableToMeta(pRepo, super, true, false) < 0) { if (tsdbAddTableToMeta(pRepo, super, true, false) < 0) {
tsdbUnlockRepoMeta(pRepo); tsdbUnlockRepoMeta(pRepo);
super = NULL;
goto _err; goto _err;
} }
} }
if (tsdbAddTableToMeta(pRepo, table, true, false) < 0) { if (tsdbAddTableToMeta(pRepo, table, true, false) < 0) {
tsdbUnlockRepoMeta(pRepo); tsdbUnlockRepoMeta(pRepo);
table = NULL;
goto _err; goto _err;
} }
tsdbUnlockRepoMeta(pRepo); tsdbUnlockRepoMeta(pRepo);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册