fix restart crash

This commit is contained in:
yihaoDeng 2023-06-20 13:47:46 +08:00
parent 870d75bf82
commit b6d4e98e68
1 changed files with 1 additions and 1 deletions

View File

@ -1026,8 +1026,8 @@ int streamStateGetCfIdx(SStreamState* pState, const char* funcName) {
break;
}
}
SBackendCfWrapper* wrapper = pState->pTdbState->pBackendCfWrapper;
if (pState != NULL && idx != -1) {
SBackendCfWrapper* wrapper = pState->pTdbState->pBackendCfWrapper;
rocksdb_column_family_handle_t* cf = NULL;
taosThreadRwlockRdlock(&wrapper->rwLock);
cf = wrapper->pHandle[idx];