fix tag error
This commit is contained in:
parent
ba72ce2b8e
commit
f658c2caa3
|
@ -35,7 +35,7 @@ if (${BUILD_WITH_INVERTEDINDEX})
|
||||||
endif(${BUILD_WITH_INVERTEDINDEX})
|
endif(${BUILD_WITH_INVERTEDINDEX})
|
||||||
|
|
||||||
|
|
||||||
# if (${BUILD_TEST})
|
if (${BUILD_TEST})
|
||||||
# add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
# endif(${BUILD_TEST})
|
endif(${BUILD_TEST})
|
||||||
|
|
||||||
|
|
|
@ -71,9 +71,7 @@ static int idxFileCtxGetSize(IFileCtx* ctx) {
|
||||||
}
|
}
|
||||||
static int idxFileCtxDoFlush(IFileCtx* ctx) {
|
static int idxFileCtxDoFlush(IFileCtx* ctx) {
|
||||||
if (ctx->type == TFile) {
|
if (ctx->type == TFile) {
|
||||||
// taosFsyncFile(ctx->file.pFile);
|
|
||||||
taosFsyncFile(ctx->file.pFile);
|
taosFsyncFile(ctx->file.pFile);
|
||||||
// tfFlush(ctx->file.pFile);
|
|
||||||
} else {
|
} else {
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
@ -190,13 +188,11 @@ int idxFileRead(IdxFstFile* write, uint8_t* buf, uint32_t len) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
IFileCtx* ctx = write->wrt;
|
IFileCtx* ctx = write->wrt;
|
||||||
int nRead = ctx->read(ctx, buf, len);
|
return ctx->read(ctx, buf, len);
|
||||||
// assert(nRead == len);
|
|
||||||
return nRead;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t idxFileMaskedCheckSum(IdxFstFile* write) {
|
uint32_t idxFileMaskedCheckSum(IdxFstFile* write) {
|
||||||
// opt
|
//////
|
||||||
return write->summer;
|
return write->summer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -457,7 +457,10 @@ static int32_t tfSearchCompareFunc_JSON(void* reader, SIndexTerm* tem, SIdxTRslt
|
||||||
} else if (0 != strncmp(ch, p, skip)) {
|
} else if (0 != strncmp(ch, p, skip)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
cond = cmpFn(ch + skip, tem->colVal, IDX_TYPE_GET_TYPE(tem->colType));
|
char* tBuf = taosMemoryCalloc(1, sz + 1);
|
||||||
|
memcpy(tBuf, ch, sz);
|
||||||
|
cond = cmpFn(tBuf + skip, tem->colVal, IDX_TYPE_GET_TYPE(tem->colType));
|
||||||
|
taosMemoryFree(tBuf);
|
||||||
}
|
}
|
||||||
if (MATCH == cond) {
|
if (MATCH == cond) {
|
||||||
tfileReaderLoadTableIds((TFileReader*)reader, rt->out.out, tr->total);
|
tfileReaderLoadTableIds((TFileReader*)reader, rt->out.out, tr->total);
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
|
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
|
||||||
*
|
* * This program is free software: you can use, redistribute, and/or modify
|
||||||
* This program is free software: you can use, redistribute, and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License, version 3
|
* it under the terms of the GNU Affero General Public License, version 3
|
||||||
* or later ("AGPL"), as published by the Free Software Foundation.
|
* or later ("AGPL"), as published by the Free Software Foundation.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue