You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by yj...@apache.org on 2025/06/26 12:56:18 UTC
(cloudberry) 01/01: Remove misleading elog(LOG) on WAL compression failure without ZSTD support
This is an automated email from the ASF dual-hosted git repository.
yjhjstz pushed a commit to branch fix_log_wal
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit f3faa68c11bfe3496b4dbb3b64e7fde0abd9c494
Author: Jianghua Yang <yj...@gmail.com>
AuthorDate: Sat Jun 21 01:20:26 2025 +0800
Remove misleading elog(LOG) on WAL compression failure without ZSTD support
When USE_ZSTD is not defined, XLogCompressBackupBlock() always returns false, indicating that WAL page compression did not succeed. The existing elog(LOG, "WAL compression failed, using uncompressed image") message may be misleading in such builds, as compression is not even attempted.
Remove the log message to avoid confusion in builds without ZSTD support.
---
src/backend/access/transam/xloginsert.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/backend/access/transam/xloginsert.c b/src/backend/access/transam/xloginsert.c
index 168ed8a5b6a..7243b97d467 100644
--- a/src/backend/access/transam/xloginsert.c
+++ b/src/backend/access/transam/xloginsert.c
@@ -655,8 +655,6 @@ XLogRecordAssemble(RmgrId rmid, uint8 info,
cbimg.hole_length,
regbuf->compressed_page,
&compressed_len);
- if (!is_compressed)
- elog(LOG, "WAL compression failed, using uncompressed image");
}
/*
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org