cache/commit: use outter lock

This commit is contained in:
Minglei Jin 2023-06-15 17:16:14 +08:00
parent 9d6a22e35e
commit 2cb6c7af16
1 changed files with 2 additions and 2 deletions

View File

@ -333,8 +333,8 @@ int32_t tsdbCacheCommit(STsdb *pTsdb) {
taosLRUCacheApply(pCache, tsdbCacheFlushDirty, &pTsdb->flushState);
rocksMayWrite(pTsdb, true, false, true);
rocksMayWrite(pTsdb, true, true, true);
rocksMayWrite(pTsdb, true, false, false);
rocksMayWrite(pTsdb, true, true, false);
rocksdb_flush(pTsdb->rCache.db, pTsdb->rCache.flushoptions, &err);
taosThreadMutexUnlock(&pTsdb->lruMutex);