fix compile issure

This commit is contained in:
Hongze Cheng 2020-12-28 11:46:11 +08:00
parent a7c6e73fb6
commit 5ed8f5d0e4
2 changed files with 2 additions and 2 deletions

View File

@ -708,7 +708,7 @@ static int tsdbRestoreInfo(STsdbRepo *pRepo) { // TODO
STsdbFileH *pFileH = pRepo->tsdbFileH; STsdbFileH *pFileH = pRepo->tsdbFileH;
SFileGroup *pFGroup = NULL; SFileGroup *pFGroup = NULL;
STsdbCfg * pCfg = &(pRepo->config); STsdbCfg * pCfg = &(pRepo->config);
SCompBlock *pBlock = NULL; SBlock * pBlock = NULL;
SFileGroupIter iter; SFileGroupIter iter;
SRWHelper rhelper = {0}; SRWHelper rhelper = {0};

View File

@ -112,7 +112,7 @@ static void taosReadInt8Config(SGlobalCfg *cfg, char *input_value) {
} }
} }
static void taosReadDirectoryConfig(SGlobalCfg *cfg, char *input_value) { static bool taosReadDirectoryConfig(SGlobalCfg *cfg, char *input_value) {
int length = (int)strlen(input_value); int length = (int)strlen(input_value);
char *option = (char *)cfg->ptr; char *option = (char *)cfg->ptr;
if (length <= 0 || length > cfg->ptrLength) { if (length <= 0 || length > cfg->ptrLength) {