From: Daniel Gustafsson Date: Thu, 25 Sep 2025 13:27:33 +0000 (+0200) Subject: Remove preprocessor guards from injection points X-Git-Tag: REL_17_7~83 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=53a2246ddf9b1e641654dd0654ff8f24e952920a;p=postgresql.git Remove preprocessor guards from injection points When defining an injection point there is no need to wrap the definition with USE_INJECTION_POINT guards, the INJECTION_POINT macro is available in all builds. Remove to make the code consistent. Author: Hayato Kuroda Reviewed-by: Michael Paquier Reviewed-by: Daniel Gustafsson Discussion: https://postgr.es/m/OSCPR01MB14966C8015DEB05ABEF2CE077F51FA@OSCPR01MB14966.jpnprd01.prod.outlook.com Backpatch-through: 17 --- diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 09fe5272022..287339b7fae 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -7294,9 +7294,7 @@ CreateCheckPoint(int flags) if (PriorRedoPtr != InvalidXLogRecPtr) UpdateCheckPointDistanceEstimate(RedoRecPtr - PriorRedoPtr); -#ifdef USE_INJECTION_POINTS INJECTION_POINT("checkpoint-before-old-wal-removal"); -#endif /* * Delete old log files, those no longer needed for last checkpoint to