postgres.git / summary / log / commit / refs
commit efc26d17a7d40e58fa60f7f39dac892eb7f82cbb
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: Thu Sep 25 13:27:33 2025 +0000
First released in: 17.7, 18.1
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 <kuroda.hayato@fujitsu.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/OSCPR01MB14966C8015DEB05ABEF2CE077F51FA@OSCPR01MB14966.jpnprd01.prod.outlook.com
Backpatch-through: 17
src/backend/access/transam/xlog.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 15b09ac9770..37edd30f32d 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -7349,9 +7349,7 @@ CreateCheckPoint(int flags)
if (PriorRedoPtr != InvalidXLogRecPtr)
UpdateCheckPointDistanceEstimate(RedoRecPtr - PriorRedoPtr);
-#ifdef USE_INJECTION_POINTS
INJECTION_POINT("checkpoint-before-old-wal-removal", NULL);
-#endif
/*
* Delete old log files, those no longer needed for last checkpoint to
[parent: 47da1745244b]