提交 65c813f7 编写于 作者: H Haojun Liao

fix(query): fix some syntax errors.

上级 a9167beb
......@@ -317,10 +317,10 @@ static void taosGetLogFileName(char *fn) {
for (int32_t i = 0; i < tsLogObj.fileNum; i++) {
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);
sprintf(fileName, "%s%d.1", fn, i);
snprintf(fileName, LOG_FILE_NAME_LEN,"%s%d.1", fn, i);
bool file2open = taosCheckFileIsOpen(fileName);
if (!file1open && !file2open) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册