unCommittedBlocks shall be decreased by one
This commit is contained in:
Jeff Tao 2019-11-19 10:36:39 +08:00
parent 78158e32a5
commit 1f953a0f63
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ int vnodeFreeCacheBlock(SCacheBlock *pCacheBlock) {
SCachePool *pPool = (SCachePool *)vnodeList[pObj->vnode].pCachePool;
if (pCacheBlock->notFree) {
pPool->notFreeSlots--;
pPool->unCommittedBlocks--;
pInfo->unCommittedBlocks--;
dTrace("vid:%d sid:%d id:%s, cache block is not free, slot:%d, index:%d notFreeSlots:%d",
pObj->vnode, pObj->sid, pObj->meterId, pCacheBlock->slot, pCacheBlock->index, pPool->notFreeSlots);
}