more code
This commit is contained in:
parent
c4b6a99caf
commit
fda6fccac8
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue