This commit is contained in:
Shengliang Guan 2020-12-08 22:17:02 +08:00
parent 6691dccb8f
commit 1c1dac72c1
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ static int32_t taosOpenNoteWithMaxLines(char *fn, int32_t maxLines, int32_t maxN
}
void taosNotePrintBuffer(SNoteObj *pNote, char *buffer, int32_t len) {
if (pNote->fd < 0) return;
if (pNote->fd <= 0) return;
taosWrite(pNote->fd, buffer, len);
if (pNote->maxLines > 0) {