From fa03303bade04bfc90c0d6a2a0c9f451ab63b27d Mon Sep 17 00:00:00 2001 From: Liu Jicong Date: Tue, 26 Apr 2022 17:19:09 +0800 Subject: [PATCH] reject wal write if exceeds limit --- source/libs/wal/src/walWrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/wal/src/walWrite.c b/source/libs/wal/src/walWrite.c index cbf77afe6f..dc31086e9f 100644 --- a/source/libs/wal/src/walWrite.c +++ b/source/libs/wal/src/walWrite.c @@ -255,7 +255,7 @@ int64_t walWriteWithSyncInfo(SWal *pWal, int64_t index, tmsg_t msgType, SSyncLog // no wal if (pWal->cfg.level == TAOS_WAL_NOLOG) return 0; - if (bodyLen > WAL_MAX_SIZE) { + if (bodyLen > TSDB_MAX_WAL_SIZE) { terrno = TSDB_CODE_WAL_SIZE_LIMIT; return -1; }