fix:[TD-28032]concat subtable and hash val as new subtable name to avoid data from multi time line write to one time line

This commit is contained in:
wangmm0220 2024-01-03 21:11:26 +08:00
parent b200e6807f
commit df70a6ef57
1 changed files with 3 additions and 2 deletions

View File

@ -2132,10 +2132,11 @@ bool isAutoTableName(char* ctbName){
bool alreadyAddGroupId(char* ctbName){ bool alreadyAddGroupId(char* ctbName){
size_t len = strlen(ctbName); size_t len = strlen(ctbName);
size_t _location = len - 1; size_t _location = len - 1;
for(; _location >= 0; _location--){ while(_location > 0){
if(ctbName[_location] < '0' && ctbName[_location] > '9'){ if(ctbName[_location] < '0' || ctbName[_location] > '9'){
break; break;
} }
_location--;
} }
return ctbName[_location] == '_' && _location < len -1; return ctbName[_location] == '_' && _location < len -1;