enh: remove TSDB_LAST_CACHE_EMPTY from enum

This commit is contained in:
Shungang Li 2024-08-13 09:44:34 +08:00
parent 3e923f765b
commit f15f7da114
2 changed files with 1 additions and 2 deletions

View File

@ -920,7 +920,6 @@ typedef enum {
typedef enum { typedef enum {
TSDB_LAST_CACHE_VALID = 0, // last_cache has valid data 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 TSDB_LAST_CACHE_NO_CACHE, // last_cache has no data, but tsdb may have data
} ELastCacheStatus; } ELastCacheStatus;

View File

@ -579,7 +579,7 @@ static int32_t tsdbCacheNewTableColumn(STsdb *pTsdb, int64_t uid, int16_t cid, i
rocksdb_writebatch_t *wb = pTsdb->rCache.writebatch; rocksdb_writebatch_t *wb = pTsdb->rCache.writebatch;
SRowKey emptyRowKey = {.ts = TSKEY_MIN, .numOfPKs = 0}; SRowKey emptyRowKey = {.ts = TSKEY_MIN, .numOfPKs = 0};
SLastCol emptyCol = { 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 *pLastCol = &emptyCol;
SLastCol *pTmpLastCol = taosMemoryCalloc(1, sizeof(SLastCol)); SLastCol *pTmpLastCol = taosMemoryCalloc(1, sizeof(SLastCol));