solve some static check questions
This commit is contained in:
parent
2e0929f163
commit
6e473f1ef1
|
@ -289,6 +289,7 @@ int mgmtRetrieveVgroups(SShowObj *pShow, char *data, int rows, SConnObj *pConn)
|
||||||
|
|
||||||
SDbObj *pDb = NULL;
|
SDbObj *pDb = NULL;
|
||||||
if (pConn->pDb != NULL) pDb = mgmtGetDb(pConn->pDb->name);
|
if (pConn->pDb != NULL) pDb = mgmtGetDb(pConn->pDb->name);
|
||||||
|
assert(pDb != NULL);
|
||||||
|
|
||||||
pVgroup = pDb->pHead;
|
pVgroup = pDb->pHead;
|
||||||
while (pVgroup != NULL) {
|
while (pVgroup != NULL) {
|
||||||
|
|
|
@ -4555,8 +4555,7 @@ static void doMerge(SQueryRuntimeEnv *pRuntimeEnv, int64_t timestamp, tFilePage
|
||||||
}
|
}
|
||||||
|
|
||||||
static void printBinaryData(int32_t functionId, char *data, int32_t srcDataType) {
|
static void printBinaryData(int32_t functionId, char *data, int32_t srcDataType) {
|
||||||
if (functionId == TSDB_FUNC_FIRST_DST || functionId == TSDB_FUNC_LAST_DST || functionId == TSDB_FUNC_FIRST_DST ||
|
if (functionId == TSDB_FUNC_FIRST_DST || functionId == TSDB_FUNC_LAST_DST) {
|
||||||
functionId == TSDB_FUNC_LAST_DST) {
|
|
||||||
switch (srcDataType) {
|
switch (srcDataType) {
|
||||||
case TSDB_DATA_TYPE_BINARY:
|
case TSDB_DATA_TYPE_BINARY:
|
||||||
printf("%ld,%s\t", *(TSKEY *)data, (data + TSDB_KEYSIZE + 1));
|
printf("%ld,%s\t", *(TSKEY *)data, (data + TSDB_KEYSIZE + 1));
|
||||||
|
|
Loading…
Reference in New Issue