提交 6d282321 编写于 作者: X Xiaoyu Wang

fix: create stream error

上级 90380488
...@@ -5516,7 +5516,10 @@ static void getStreamQueryFirstProjectAliasName(SHashObj* pUserAliasSet, char* a ...@@ -5516,7 +5516,10 @@ static void getStreamQueryFirstProjectAliasName(SHashObj* pUserAliasSet, char* a
snprintf(aliasName, len, "%s", "ts"); snprintf(aliasName, len, "%s", "ts");
return; return;
} }
taosRandStr(aliasName, len); do {
taosRandStr(aliasName, len - 1);
aliasName[len - 1] = '\0';
} while (NULL != taosHashGet(pUserAliasSet, aliasName, strlen(aliasName)));
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册