fix code
This commit is contained in:
parent
265e27ece3
commit
dc8901268e
|
@ -163,12 +163,14 @@ static int32_t tsdbMemTableIterNext(STsdbIter *iter, const TABLEID *tbid) {
|
||||||
SRBTreeNode *node;
|
SRBTreeNode *node;
|
||||||
|
|
||||||
while (!iter->ctx->noMoreData) {
|
while (!iter->ctx->noMoreData) {
|
||||||
while (iter->memt->tbData && tsdbTbDataIterNext(iter->memt->tbIter)) {
|
for (TSDBROW *row; iter->memt->tbData && (row = tsdbTbDataIterGet(iter->memt->tbIter));) {
|
||||||
if (tbid && tbid->suid == iter->memt->tbData->suid && tbid->uid == iter->memt->tbData->uid) {
|
if (tbid && tbid->suid == iter->memt->tbData->suid && tbid->uid == iter->memt->tbData->uid) {
|
||||||
iter->memt->tbData = NULL;
|
iter->memt->tbData = NULL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
iter->row->row = *tsdbTbDataIterGet(iter->memt->tbIter);
|
iter->row->row = row[0];
|
||||||
|
|
||||||
|
tsdbTbDataIterNext(iter->memt->tbIter);
|
||||||
goto _exit;
|
goto _exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -611,7 +611,7 @@ static int32_t tsdbSttFWriterCloseCommit(SSttFileWriter *writer, STFileOp *op) {
|
||||||
|
|
||||||
tsdbCloseFile(&writer->fd);
|
tsdbCloseFile(&writer->fd);
|
||||||
|
|
||||||
ASSERT(writer->config->file.size > writer->file->size);
|
ASSERT(writer->config->file.size < writer->file->size);
|
||||||
op->optype = writer->config->file.size ? TSDB_FOP_MODIFY : TSDB_FOP_CREATE;
|
op->optype = writer->config->file.size ? TSDB_FOP_MODIFY : TSDB_FOP_CREATE;
|
||||||
op->fid = writer->config->file.fid;
|
op->fid = writer->config->file.fid;
|
||||||
op->of = writer->config->file;
|
op->of = writer->config->file;
|
||||||
|
|
Loading…
Reference in New Issue