Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-31386
This commit is contained in:
commit
a3424e6f59
|
@ -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__,
|
||||
|
|
|
@ -4608,11 +4608,13 @@ static void freeSchemaFunc(void* param) {
|
|||
}
|
||||
|
||||
static void clearSharedPtr(STsdbReader* p) {
|
||||
p->status.pTableMap = NULL;
|
||||
p->status.uidList.tableUidList = NULL;
|
||||
p->info.pSchema = NULL;
|
||||
p->pReadSnap = NULL;
|
||||
p->pSchemaMap = NULL;
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue