提交 932dc94f 编写于 作者: A Alex Duan

feat: auto get stable after use db

上级 095a6e0f
...@@ -1682,6 +1682,11 @@ bool matchEnd(TAOS* con, SShellCmd* cmd) { ...@@ -1682,6 +1682,11 @@ bool matchEnd(TAOS* con, SShellCmd* cmd) {
bool ret = false; bool ret = false;
char* ps = strndup(cmd->command, cmd->commandSize); char* ps = strndup(cmd->command, cmd->commandSize);
char* last = lastWord(ps); char* last = lastWord(ps);
char* elast = strrchr(last, '.'); // find end last
if(elast) {
last = elast;
}
if(strlen(last) < 2 ) { if(strlen(last) < 2 ) {
goto _return; goto _return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册