From 086253b41313e53772a88a72afc7c564f7be573e Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Thu, 12 Jan 2023 09:52:03 +0800 Subject: [PATCH] Revert "vnode: disable buffer pool recycling for 3.0 merging" This reverts commit ba68d5d7b3424f5ca690373a67c39ea4b75b6091. --- source/dnode/vnode/src/vnd/vnodeCommit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dnode/vnode/src/vnd/vnodeCommit.c b/source/dnode/vnode/src/vnd/vnodeCommit.c index 63c05ce88c..4473d4e9aa 100644 --- a/source/dnode/vnode/src/vnd/vnodeCommit.c +++ b/source/dnode/vnode/src/vnd/vnodeCommit.c @@ -75,10 +75,10 @@ static int32_t vnodeGetBufPoolToUse(SVnode *pVnode) { break; } else { vDebug("vgId:%d no free buffer pool on %d try, try to recycle...", TD_VID(pVnode), nTry); - /* + code = vnodeTryRecycleBufPool(pVnode); TSDB_CHECK_CODE(code, lino, _exit); - */ + if (pVnode->freeList == NULL) { vDebug("vgId:%d no free buffer pool on %d try, wait %d ms...", TD_VID(pVnode), nTry, WAIT_TIME_MILI_SEC); -- GitLab