fix stream backend crash when transfer

This commit is contained in:
yihaoDeng 2023-12-16 17:43:41 +08:00
parent 9978d8cbfd
commit 6f4fb506a0
1 changed files with 4 additions and 1 deletions

View File

@ -2290,6 +2290,9 @@ int streamStateGetCfIdx(SStreamState* pState, const char* funcName) {
}
if (pState != NULL && idx != -1) {
STaskDbWrapper* wrapper = pState->pTdbState->pOwner->pBackend;
if (wrapper == NULL) {
return -1;
}
rocksdb_column_family_handle_t* cf = NULL;
taosThreadMutexLock(&wrapper->mutex);