mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
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
This commit is contained in:
@@ -7349,9 +7349,7 @@ CreateCheckPoint(int flags)
|
|||||||
if (PriorRedoPtr != InvalidXLogRecPtr)
|
if (PriorRedoPtr != InvalidXLogRecPtr)
|
||||||
UpdateCheckPointDistanceEstimate(RedoRecPtr - PriorRedoPtr);
|
UpdateCheckPointDistanceEstimate(RedoRecPtr - PriorRedoPtr);
|
||||||
|
|
||||||
#ifdef USE_INJECTION_POINTS
|
|
||||||
INJECTION_POINT("checkpoint-before-old-wal-removal", NULL);
|
INJECTION_POINT("checkpoint-before-old-wal-removal", NULL);
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Delete old log files, those no longer needed for last checkpoint to
|
* Delete old log files, those no longer needed for last checkpoint to
|
||||||
|
|||||||
Reference in New Issue
Block a user