add mutex

This commit is contained in:
yihaoDeng 2023-02-10 10:51:25 +08:00
parent d4cfeb1f6c
commit cf129cacb9
1 changed files with 3 additions and 0 deletions

View File

@ -506,7 +506,10 @@ int metaAddIndexToSTable(SMeta *pMeta, int64_t version, SVCreateStbReq *pReq) {
metaDestroyTagIdxKey(pTagIdxKey);
goto _err;
}
metaWLock(pMeta);
tdbTbUpsert(pMeta->pTagIdx, pTagIdxKey, nTagIdxKey, NULL, 0, pMeta->txn);
metaULock(pMeta);
metaDestroyTagIdxKey(pTagIdxKey);
}