fix stream backend convert

This commit is contained in:
yihaoDeng 2023-11-16 11:06:55 +08:00
parent b74105727d
commit 77261068e0
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ typedef struct SStreamTask SStreamTask;
typedef struct SStreamQueue SStreamQueue;
typedef struct SStreamTaskSM SStreamTaskSM;
#define SSTREAM_TASK_VER 3
#define SSTREAM_TASK_VER 2
#define SSTREAM_TASK_INCOMPATIBLE_VER 1
#define SSTREAM_TASK_NEED_CONVERT_VER 2

View File

@ -1759,7 +1759,7 @@ int32_t taskDbOpenCfByKey(STaskDbWrapper* pDb, const char* key) {
rocksdb_column_family_handle_t* cf =
rocksdb_create_column_family(pDb->db, pDb->pCfOpts[idx], ginitDict[idx].key, &err);
if (err != NULL) {
if (idx != 0 && err != NULL) {
stError("failed to open cf, key:%s, reason: %s", key, err);
taosMemoryFree(err);
code = -1;