Merge pull request #29780 from taosdata/fix/metanull_3.0
fix(stream): access value after null ptr check.
This commit is contained in:
commit
0476a24646
|
@ -1225,6 +1225,7 @@ int32_t tqStreamTaskProcessTaskResumeReq(void* handle, int64_t sversion, char* m
|
||||||
streamMetaReleaseTask(pMeta, pHTask);
|
streamMetaReleaseTask(pMeta, pHTask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
streamMetaReleaseTask(pMeta, pTask);
|
||||||
return TSDB_CODE_SUCCESS;
|
return TSDB_CODE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -573,11 +573,11 @@ void streamMetaClear(SStreamMeta* pMeta) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void streamMetaClose(SStreamMeta* pMeta) {
|
void streamMetaClose(SStreamMeta* pMeta) {
|
||||||
stDebug("vgId:%d start to close stream meta", pMeta->vgId);
|
|
||||||
if (pMeta == NULL) {
|
if (pMeta == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stDebug("vgId:%d start to close stream meta", pMeta->vgId);
|
||||||
int32_t code = taosRemoveRef(streamMetaRefPool, pMeta->rid);
|
int32_t code = taosRemoveRef(streamMetaRefPool, pMeta->rid);
|
||||||
if (code) {
|
if (code) {
|
||||||
stError("vgId:%d failed to remove meta ref:%" PRId64 ", code:%s", pMeta->vgId, pMeta->rid, tstrerror(code));
|
stError("vgId:%d failed to remove meta ref:%" PRId64 ", code:%s", pMeta->vgId, pMeta->rid, tstrerror(code));
|
||||||
|
|
Loading…
Reference in New Issue