From 1c1dac72c1205bbc128d09dc20890242e1d21ac8 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Tue, 8 Dec 2020 22:17:02 +0800 Subject: [PATCH] TD-2371 --- src/util/src/tnote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/src/tnote.c b/src/util/src/tnote.c index 82ce2c314d..f2db0b3316 100644 --- a/src/util/src/tnote.c +++ b/src/util/src/tnote.c @@ -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) { -- GitLab