提交 c56f29c0 编写于 作者: M Minglei Jin

cache/flushState: init flush state when open cache

上级 158ae209
...@@ -1200,6 +1200,9 @@ int32_t tsdbOpenCache(STsdb *pTsdb) { ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册