This commit is contained in:
hzcheng 2020-03-22 12:26:19 +08:00
parent 7546da5e54
commit ca7340121d
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ void *tsdbAllocFromCache(STsdbCache *pCache, int bytes, TSKEY key) {
memset(ptr, 0, bytes);
if (key < pCache->mem->keyFirst) pCache->mem->keyFirst = key;
if (key > pCache->mem->keyLast) pCache->mem->keyLast = key;
pCache->mem->numOfPoints++;
return ptr;
}