more code

This commit is contained in:
Hongze Cheng 2023-01-09 09:24:26 +08:00
parent c4b6a99caf
commit fda6fccac8
3 changed files with 4 additions and 6 deletions

View File

@ -341,7 +341,9 @@ struct SVnode {
SVBufPool* aBufPool[VNODE_BUFPOOL_SEGMENTS];
SVBufPool* freeList;
SVBufPool* inUse;
SVBufPool* recycling;
SVBufPool* onCommit;
SVBufPool* recycleHead;
SVBufPool* recycleTail;
SMeta* pMeta;
SSma* pSma;

View File

@ -94,10 +94,6 @@ int vnodeCloseBufPool(SVnode *pVnode) {
}
}
pVnode->freeList = NULL;
ASSERT(pVnode->inUse == NULL);
ASSERT(pVnode->recycling == NULL);
vDebug("vgId:%d, vnode buffer pool is closed", TD_VID(pVnode));
return 0;
}

View File

@ -29,7 +29,7 @@ int vnodeBegin(SVnode *pVnode) {
int32_t nTry = 0;
for (;;) {
while (pVnode->freeList == NULL) {
while (pVnode->freeList == NULL) { // move here below
vDebug("vgId:%d no free buffer pool, try to wait %d...", TD_VID(pVnode), ++nTry);
struct timeval tv;