refactor: do some internal refactor.
This commit is contained in:
parent
ab2c7c575b
commit
365e6eec80
|
@ -1697,12 +1697,7 @@ int32_t getTablesOfGroup(const STableListInfo* pTableList, int32_t ordinalGroupI
|
||||||
// 1. only one group exists, and 2. one table exists for each group.
|
// 1. only one group exists, and 2. one table exists for each group.
|
||||||
if (total == 1) {
|
if (total == 1) {
|
||||||
*size = getTotalTables(pTableList);
|
*size = getTotalTables(pTableList);
|
||||||
if (*size > 0) {
|
*pKeyInfo = (*size == 0)? NULL:taosArrayGet(pTableList->pTableList, 0);
|
||||||
*pKeyInfo = taosArrayGet(pTableList->pTableList, 0);
|
|
||||||
} else {
|
|
||||||
*pKeyInfo = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return TSDB_CODE_SUCCESS;
|
return TSDB_CODE_SUCCESS;
|
||||||
} else if (total == getTotalTables(pTableList)) {
|
} else if (total == getTotalTables(pTableList)) {
|
||||||
*size = 1;
|
*size = 1;
|
||||||
|
@ -1723,7 +1718,6 @@ int32_t getTablesOfGroup(const STableListInfo* pTableList, int32_t ordinalGroupI
|
||||||
|
|
||||||
int32_t getNumOfOutputGroups(const STableListInfo* pTableList) { return pTableList->numOfOuputGroups; }
|
int32_t getNumOfOutputGroups(const STableListInfo* pTableList) { return pTableList->numOfOuputGroups; }
|
||||||
|
|
||||||
// todo remove it
|
|
||||||
bool oneTableForEachGroup(const STableListInfo* pTableList) { return pTableList->oneTableForEachGroup; }
|
bool oneTableForEachGroup(const STableListInfo* pTableList) { return pTableList->oneTableForEachGroup; }
|
||||||
|
|
||||||
void destroyTableList(STableListInfo* pTableqinfoList) {
|
void destroyTableList(STableListInfo* pTableqinfoList) {
|
||||||
|
|
Loading…
Reference in New Issue