Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-31386

This commit is contained in:
54liuyao 2024-08-12 19:40:07 +08:00
commit a3424e6f59
2 changed files with 9 additions and 5 deletions

View File

@ -73,6 +73,8 @@ int metaPrepareAsyncCommit(SMeta *pMeta) {
TSDB_CHECK_CODE(code, lino, _exit);
pMeta->changed = false;
pMeta->txn = NULL;
_exit:
if (code) {
metaError("vgId:%d %s failed at %s:%d since %s", TD_VID(pMeta->pVnode), __func__, __FILE__, __LINE__,

View File

@ -4608,11 +4608,13 @@ static void freeSchemaFunc(void* param) {
}
static void clearSharedPtr(STsdbReader* p) {
if (p) {
p->status.pTableMap = NULL;
p->status.uidList.tableUidList = NULL;
p->info.pSchema = NULL;
p->pReadSnap = NULL;
p->pSchemaMap = NULL;
}
}
static int32_t setSharedPtr(STsdbReader* pDst, const STsdbReader* pSrc) {