fix: duplicate calling shellWriteHistory

This commit is contained in:
Alex Duan 2023-04-18 13:44:26 +08:00
parent 76becf59b7
commit 6a9bdb9824
1 changed files with 0 additions and 2 deletions

View File

@ -58,7 +58,6 @@ int32_t shellRunSingleCommand(char *command) {
}
if (shellRegexMatch(command, "^[ \t]*(quit|q|exit)[ \t;]*$", REG_EXTENDED | REG_ICASE)) {
shellWriteHistory();
return -1;
}
@ -887,7 +886,6 @@ void shellWriteHistory() {
}
i = (i + 1) % SHELL_MAX_HISTORY_SIZE;
}
taosFsyncFile(pFile);
taosCloseFile(&pFile);
}