fix: show compact detail
This commit is contained in:
parent
c53bd04894
commit
878ab262e6
|
@ -553,8 +553,8 @@ static int32_t buildCompactDbBlock(SCompactDbRsp* pRsp, SSDataBlock** block) {
|
|||
infoData.info.bytes = COMPACT_DB_RESULT_FIELD1_LEN;
|
||||
taosArrayPush(pBlock->pDataBlock, &infoData);
|
||||
|
||||
infoData.info.type = TSDB_DATA_TYPE_BIGINT;
|
||||
infoData.info.bytes = tDataTypes[TSDB_DATA_TYPE_BIGINT].bytes;
|
||||
infoData.info.type = TSDB_DATA_TYPE_INT;
|
||||
infoData.info.bytes = tDataTypes[TSDB_DATA_TYPE_INT].bytes;
|
||||
taosArrayPush(pBlock->pDataBlock, &infoData);
|
||||
|
||||
infoData.info.type = TSDB_DATA_TYPE_VARCHAR;
|
||||
|
|
|
@ -1094,6 +1094,7 @@ void nodesDestroyNode(SNode* pNode) {
|
|||
case QUERY_NODE_SHOW_COMPACT_DETAILS_STMT: {
|
||||
SShowCompactDetailsStmt* pStmt = (SShowCompactDetailsStmt*)pNode;
|
||||
nodesDestroyNode(pStmt->pCompactId);
|
||||
break;
|
||||
}
|
||||
case QUERY_NODE_SHOW_CREATE_DATABASE_STMT:
|
||||
taosMemoryFreeClear(((SShowCreateDatabaseStmt*)pNode)->pCfg);
|
||||
|
|
|
@ -8761,7 +8761,7 @@ static int32_t extractCompactDbResultSchema(int32_t* numOfCols, SSchema** pSchem
|
|||
|
||||
(*pSchema)[2].type = TSDB_DATA_TYPE_BINARY;
|
||||
(*pSchema)[2].bytes = COMPACT_DB_RESULT_FIELD3_LEN;
|
||||
strcpy((*pSchema)[2].name, "scope");
|
||||
strcpy((*pSchema)[2].name, "reason");
|
||||
|
||||
return TSDB_CODE_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue