format file
This commit is contained in:
parent
52873e2294
commit
db07abc851
|
@ -2,21 +2,19 @@
|
||||||
|
|
||||||
#include "tsdbCache.h"
|
#include "tsdbCache.h"
|
||||||
|
|
||||||
|
|
||||||
STsdbCache *tsdbCreateCache(int32_t numOfBlocks) {
|
STsdbCache *tsdbCreateCache(int32_t numOfBlocks) {
|
||||||
STsdbCache *pCacheHandle = (STsdbCache *)malloc(sizeof(STsdbCache));
|
STsdbCache *pCacheHandle = (STsdbCache *)malloc(sizeof(STsdbCache));
|
||||||
if (pCacheHandle == NULL) {
|
if (pCacheHandle == NULL) {
|
||||||
// TODO : deal with the error
|
// TODO : deal with the error
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return pCacheHandle;
|
|
||||||
|
|
||||||
|
return pCacheHandle;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t tsdbFreeCache(STsdbCache *pHandle) { return 0; }
|
int32_t tsdbFreeCache(STsdbCache *pHandle) { return 0; }
|
||||||
|
|
||||||
void *tsdbAllocFromCache(STsdbCache *pCache, int64_t bytes) {
|
void *tsdbAllocFromCache(STsdbCache *pCache, int64_t bytes) {
|
||||||
// TODO: implement here
|
// TODO: implement here
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
Loading…
Reference in New Issue