From cf15f65363d4a774e5003310780ad4f86c15fe5c Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Mon, 2 Nov 2020 17:06:38 +0800 Subject: [PATCH] TD-1887 --- src/wal/src/walWrite.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wal/src/walWrite.c b/src/wal/src/walWrite.c index f9bb5fe927..09b65fa567 100644 --- a/src/wal/src/walWrite.c +++ b/src/wal/src/walWrite.c @@ -80,6 +80,7 @@ int32_t walWrite(void *handle, SWalHead *pHead) { int32_t code = 0; // no wal + if (pWal->fd <= 0) return 0; if (pWal->level == TAOS_WAL_NOLOG) return 0; if (pHead->version <= pWal->version) return 0; -- GitLab