cache/flushState: init flush state when open cache
This commit is contained in:
parent
158ae209bf
commit
c56f29c031
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue