cache/flushState: init flush state when open cache

This commit is contained in:
Minglei Jin 2023-06-15 17:01:27 +08:00
parent 158ae209bf
commit c56f29c031
1 changed files with 3 additions and 0 deletions

View File

@ -1200,6 +1200,9 @@ int32_t tsdbOpenCache(STsdb *pTsdb) {
taosThreadMutexInit(&pTsdb->lruMutex, NULL);
pTsdb->flushState.pTsdb = pTsdb;
pTsdb->flushState.flush_count = 0;
_err:
pTsdb->lruCache = pCache;
return code;