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);
|
taosThreadMutexInit(&pTsdb->lruMutex, NULL);
|
||||||
|
|
||||||
|
pTsdb->flushState.pTsdb = pTsdb;
|
||||||
|
pTsdb->flushState.flush_count = 0;
|
||||||
|
|
||||||
_err:
|
_err:
|
||||||
pTsdb->lruCache = pCache;
|
pTsdb->lruCache = pCache;
|
||||||
return code;
|
return code;
|
||||||
|
|
Loading…
Reference in New Issue