diff --git a/src/vnode/tsdb/src/tsdbCache.c b/src/vnode/tsdb/src/tsdbCache.c index 3496f6a5c8c480bde799adeb04ca4e6668057820..d64b98d49dbcd7c7f76a7fe4c914a975c82c4658 100644 --- a/src/vnode/tsdb/src/tsdbCache.c +++ b/src/vnode/tsdb/src/tsdbCache.c @@ -75,8 +75,10 @@ void *tsdbAllocFromCache(STsdbCache *pCache, int bytes, TSKEY key) { if (pCache->curBlock !=NULL && (pCache->mem->list) >= pCache->totalCacheBlocks/2) { tsdbTriggerCommit(pCache->pRepo); } - if (tsdbAllocBlockFromPool(pCache) < 0) { + + while (tsdbAllocBlockFromPool(pCache) < 0) { // TODO: deal with the error + // printf("Failed to allocate from cache pool\n"); } }