diff --git a/source/dnode/vnode/src/inc/tsdb.h b/source/dnode/vnode/src/inc/tsdb.h index 8fae1b9290..ab5b07581a 100644 --- a/source/dnode/vnode/src/inc/tsdb.h +++ b/source/dnode/vnode/src/inc/tsdb.h @@ -920,7 +920,6 @@ typedef enum { typedef enum { TSDB_LAST_CACHE_VALID = 0, // last_cache has valid data - TSDB_LAST_CACHE_EMPTY, // neither last_cache nor tsdb has data TSDB_LAST_CACHE_NO_CACHE, // last_cache has no data, but tsdb may have data } ELastCacheStatus; diff --git a/source/dnode/vnode/src/tsdb/tsdbCache.c b/source/dnode/vnode/src/tsdb/tsdbCache.c index dc3bf00c80..cf1728f1fe 100644 --- a/source/dnode/vnode/src/tsdb/tsdbCache.c +++ b/source/dnode/vnode/src/tsdb/tsdbCache.c @@ -579,7 +579,7 @@ static int32_t tsdbCacheNewTableColumn(STsdb *pTsdb, int64_t uid, int16_t cid, i rocksdb_writebatch_t *wb = pTsdb->rCache.writebatch; SRowKey emptyRowKey = {.ts = TSKEY_MIN, .numOfPKs = 0}; SLastCol emptyCol = { - .rowKey = emptyRowKey, .colVal = COL_VAL_NONE(cid, col_type), .dirty = 1, .cacheStatus = TSDB_LAST_CACHE_EMPTY}; + .rowKey = emptyRowKey, .colVal = COL_VAL_NONE(cid, col_type), .dirty = 1, .cacheStatus = TSDB_LAST_CACHE_VALID}; SLastCol *pLastCol = &emptyCol; SLastCol *pTmpLastCol = taosMemoryCalloc(1, sizeof(SLastCol));