Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/vnode
This commit is contained in:
commit
41fc6be1a8
|
@ -416,8 +416,7 @@ static int32_t mndCreateSma(SMnode *pMnode, SNodeMsg *pReq, SMCreateSmaReq *pCre
|
||||||
streamObj.version = 1;
|
streamObj.version = 1;
|
||||||
streamObj.sql = pCreate->sql;
|
streamObj.sql = pCreate->sql;
|
||||||
streamObj.createdBy = STREAM_CREATED_BY__SMA;
|
streamObj.createdBy = STREAM_CREATED_BY__SMA;
|
||||||
// TODO
|
streamObj.fixedSinkVgId = smaObj.dstVgId;
|
||||||
streamObj.fixedSinkVgId = 0;
|
|
||||||
streamObj.smaId = smaObj.uid;
|
streamObj.smaId = smaObj.uid;
|
||||||
/*streamObj.physicalPlan = "";*/
|
/*streamObj.physicalPlan = "";*/
|
||||||
streamObj.logicalPlan = "not implemented";
|
streamObj.logicalPlan = "not implemented";
|
||||||
|
|
|
@ -1111,7 +1111,7 @@ static int tsdbRestoreDFileSet(STsdb *pRepo) {
|
||||||
char bname[TSDB_FILENAME_LEN];
|
char bname[TSDB_FILENAME_LEN];
|
||||||
STfsDir * tdir = NULL;
|
STfsDir * tdir = NULL;
|
||||||
const STfsFile *pf = NULL;
|
const STfsFile *pf = NULL;
|
||||||
const char * pattern = "^v[0-9]+f[0-9]+\\.(head|data|last)(-ver[0-9]+)?$";
|
const char * pattern = "^v[0-9]+f[0-9]+\\.(head|data|last|smad|smal)(-ver[0-9]+)?$";
|
||||||
SArray * fArray = NULL;
|
SArray * fArray = NULL;
|
||||||
regex_t regex;
|
regex_t regex;
|
||||||
STsdbFS * pfs = REPO_FS(pRepo);
|
STsdbFS * pfs = REPO_FS(pRepo);
|
||||||
|
|
|
@ -267,7 +267,7 @@ static void trtrim(char *input, char *output, int32_t type, int32_t charLen) {
|
||||||
numOfSpaces++;
|
numOfSpaces++;
|
||||||
}
|
}
|
||||||
} else { //NCHAR
|
} else { //NCHAR
|
||||||
for (int32_t i = charLen - 1; i < charLen; ++i) {
|
for (int32_t i = charLen - 1; i >= 0; --i) {
|
||||||
if (!iswspace(*((uint32_t *)varDataVal(input) + i))) {
|
if (!iswspace(*((uint32_t *)varDataVal(input) + i))) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue