mirror of
https://github.com/postgres/postgres.git
synced 2026-04-21 22:28:15 -04:00
Tidy up #ifdef USE_INJECTION_POINTS guards
Remove unnecessary #ifdef guard around the function prototypes; they are already inside a larger #ifdef block. Move #include "subsystems.h" inside the USE_INJECTION_POINTS guard; it's needed for InjectionPointShmemCallbacks, which is a also inside the guard. Reported-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Discussion: https://www.postgresql.org/message-id/87y0iz2c1v.fsf@wibble.ilmari.org
This commit is contained in:
parent
be142fa008
commit
9480c585df
1 changed files with 1 additions and 3 deletions
|
|
@ -17,7 +17,6 @@
|
|||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "storage/subsystems.h"
|
||||
#include "utils/injection_point.h"
|
||||
|
||||
#ifdef USE_INJECTION_POINTS
|
||||
|
|
@ -29,6 +28,7 @@
|
|||
#include "storage/fd.h"
|
||||
#include "storage/lwlock.h"
|
||||
#include "storage/shmem.h"
|
||||
#include "storage/subsystems.h"
|
||||
#include "utils/hsearch.h"
|
||||
#include "utils/memutils.h"
|
||||
|
||||
|
|
@ -110,10 +110,8 @@ typedef struct InjectionPointCacheEntry
|
|||
|
||||
static HTAB *InjectionPointCache = NULL;
|
||||
|
||||
#ifdef USE_INJECTION_POINTS
|
||||
static void InjectionPointShmemRequest(void *arg);
|
||||
static void InjectionPointShmemInit(void *arg);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* injection_point_cache_add
|
||||
|
|
|
|||
Loading…
Reference in a new issue