add/delete tag idx
This commit is contained in:
parent
a7eee2c178
commit
69f0fe9792
|
@ -447,10 +447,9 @@ int metaAddIndexToSTable(SMeta *pMeta, int64_t version, SVCreateStbReq *pReq) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// update table.db
|
if (diffIdx == -1) {
|
||||||
metaSaveToTbDb(pMeta, &nStbEntry);
|
goto _err;
|
||||||
// update uid index
|
}
|
||||||
metaUpdateUidIdx(pMeta, &nStbEntry);
|
|
||||||
|
|
||||||
// metaStatsCacheDrop(pMeta, nStbEntry.uid);
|
// metaStatsCacheDrop(pMeta, nStbEntry.uid);
|
||||||
|
|
||||||
|
@ -510,6 +509,11 @@ int metaAddIndexToSTable(SMeta *pMeta, int64_t version, SVCreateStbReq *pReq) {
|
||||||
metaDestroyTagIdxKey(pTagIdxKey);
|
metaDestroyTagIdxKey(pTagIdxKey);
|
||||||
}
|
}
|
||||||
metaWLock(pMeta);
|
metaWLock(pMeta);
|
||||||
|
// update table.db
|
||||||
|
metaSaveToTbDb(pMeta, &nStbEntry);
|
||||||
|
// update uid index
|
||||||
|
metaUpdateUidIdx(pMeta, &nStbEntry);
|
||||||
|
metaULock(pMeta);
|
||||||
|
|
||||||
if (oStbEntry.pBuf) taosMemoryFree(oStbEntry.pBuf);
|
if (oStbEntry.pBuf) taosMemoryFree(oStbEntry.pBuf);
|
||||||
tDecoderClear(&dc);
|
tDecoderClear(&dc);
|
||||||
|
|
Loading…
Reference in New Issue