format file

This commit is contained in:
hzcheng 2020-03-05 06:08:28 +00:00
parent 52873e2294
commit db07abc851
1 changed files with 8 additions and 10 deletions

View File

@ -2,21 +2,19 @@
#include "tsdbCache.h"
STsdbCache *tsdbCreateCache(int32_t numOfBlocks) {
STsdbCache *pCacheHandle = (STsdbCache *)malloc(sizeof(STsdbCache));
if (pCacheHandle == NULL) {
// TODO : deal with the error
return NULL;
}
return pCacheHandle;
STsdbCache *pCacheHandle = (STsdbCache *)malloc(sizeof(STsdbCache));
if (pCacheHandle == NULL) {
// TODO : deal with the error
return NULL;
}
return pCacheHandle;
}
int32_t tsdbFreeCache(STsdbCache *pHandle) { return 0; }
void *tsdbAllocFromCache(STsdbCache *pCache, int64_t bytes) {
// TODO: implement here
return NULL;
// TODO: implement here
return NULL;
}