From 0b3ce7878af757b8c91721ccecbbb75c10a22ef4 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Thu, 25 Sep 2025 15:27:33 +0200 Subject: 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 --- src/backend/access/transam/xlog.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/backend/access/transam/xlog.c') diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index eac1de75ed0..109713315c0 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -7354,9 +7354,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 -- cgit v1.2.3