fix(query): fix some syntax errors.

This commit is contained in:
Haojun Liao 2022-11-09 14:59:09 +08:00
parent a9167beb91
commit 65c813f735
1 changed files with 2 additions and 2 deletions

View File

@ -317,10 +317,10 @@ static void taosGetLogFileName(char *fn) {
for (int32_t i = 0; i < tsLogObj.fileNum; i++) { for (int32_t i = 0; i < tsLogObj.fileNum; i++) {
char fileName[LOG_FILE_NAME_LEN]; char fileName[LOG_FILE_NAME_LEN];
sprintf(fileName, "%s%d.0", fn, i); snprintf(fileName, LOG_FILE_NAME_LEN,"%s%d.0", fn, i);
bool file1open = taosCheckFileIsOpen(fileName); bool file1open = taosCheckFileIsOpen(fileName);
sprintf(fileName, "%s%d.1", fn, i); snprintf(fileName, LOG_FILE_NAME_LEN,"%s%d.1", fn, i);
bool file2open = taosCheckFileIsOpen(fileName); bool file2open = taosCheckFileIsOpen(fileName);
if (!file1open && !file2open) { if (!file1open && !file2open) {