format more

This commit is contained in:
Hongze Cheng 2022-11-11 13:57:38 +08:00
parent d9faec5e9f
commit 057af11ae8
1 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ void *vnodeBufPoolMalloc(SVBufPool *pPool, int size) {
void *p = NULL; void *p = NULL;
ASSERT(pPool != NULL); ASSERT(pPool != NULL);
if(pPool->lock) taosThreadSpinLock(pPool->lock); if (pPool->lock) taosThreadSpinLock(pPool->lock);
if (pPool->node.size >= pPool->ptr - pPool->node.data + size) { if (pPool->node.size >= pPool->ptr - pPool->node.data + size) {
// allocate from the anchor node // allocate from the anchor node
p = pPool->ptr; p = pPool->ptr;
@ -142,7 +142,7 @@ void *vnodeBufPoolMalloc(SVBufPool *pPool, int size) {
pPool->size = pPool->size + sizeof(*pNode) + size; pPool->size = pPool->size + sizeof(*pNode) + size;
} }
if(pPool->lock) taosThreadSpinUnlock(pPool->lock); if (pPool->lock) taosThreadSpinUnlock(pPool->lock);
return p; return p;
} }