more
This commit is contained in:
parent
d7f7e3272f
commit
4c6f7d90cd
|
@ -34,7 +34,7 @@ typedef struct SDataStatis {
|
||||||
} SDataStatis;
|
} SDataStatis;
|
||||||
|
|
||||||
typedef struct STable {
|
typedef struct STable {
|
||||||
int32_t tid;
|
uint64_t tid;
|
||||||
uint64_t uid;
|
uint64_t uid;
|
||||||
STSchema *pSchema;
|
STSchema *pSchema;
|
||||||
} STable;
|
} STable;
|
||||||
|
|
|
@ -2,7 +2,7 @@ aux_source_directory(src TSDB_SRC)
|
||||||
if(0)
|
if(0)
|
||||||
add_library(tsdb ${TSDB_SRC})
|
add_library(tsdb ${TSDB_SRC})
|
||||||
else(0)
|
else(0)
|
||||||
add_library(tsdb "")
|
add_library(tsdb STATIC "")
|
||||||
target_sources(tsdb
|
target_sources(tsdb
|
||||||
PRIVATE
|
PRIVATE
|
||||||
"src/tsdbCommit.c"
|
"src/tsdbCommit.c"
|
||||||
|
|
|
@ -421,12 +421,10 @@ static int tsdbCreateCommitIters(SCommitH *pCommith) {
|
||||||
pCommitIter->pIter = tSkipListCreateIter(pTbData->pData);
|
pCommitIter->pIter = tSkipListCreateIter(pTbData->pData);
|
||||||
tSkipListIterNext(pCommitIter->pIter);
|
tSkipListIterNext(pCommitIter->pIter);
|
||||||
|
|
||||||
#if 0
|
|
||||||
// TODO
|
|
||||||
pCommitIter->pTable = (STable *)malloc(sizeof(STable));
|
pCommitIter->pTable = (STable *)malloc(sizeof(STable));
|
||||||
pCommitIter->pTable->uid = pTbData->uid;
|
pCommitIter->pTable->uid = pTbData->uid;
|
||||||
pCommitIter->pTable->pSchema = metaGetTableSchema();
|
pCommitIter->pTable->tid = pTbData->uid;
|
||||||
#endif
|
pCommitIter->pTable->pSchema = metaGetTbTSchema(pRepo->pMeta, pTbData->uid, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -437,6 +435,8 @@ static void tsdbDestroyCommitIters(SCommitH *pCommith) {
|
||||||
|
|
||||||
for (int i = 1; i < pCommith->niters; i++) {
|
for (int i = 1; i < pCommith->niters; i++) {
|
||||||
tSkipListDestroyIter(pCommith->iters[i].pIter);
|
tSkipListDestroyIter(pCommith->iters[i].pIter);
|
||||||
|
tdFreeSchema(pCommith->iters[i].pTable->pSchema);
|
||||||
|
free(pCommith->iters[i].pTable);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(pCommith->iters);
|
free(pCommith->iters);
|
||||||
|
|
Loading…
Reference in New Issue