mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
shared library: remove redundant code
This has never actually served any purpose; see core commit ab02d702ef.
This commit is contained in:
16
repmgr.c
16
repmgr.c
@@ -86,7 +86,6 @@ static shmem_request_hook_type prev_shmem_request_hook = NULL;
|
|||||||
static shmem_startup_hook_type prev_shmem_startup_hook = NULL;
|
static shmem_startup_hook_type prev_shmem_startup_hook = NULL;
|
||||||
|
|
||||||
void _PG_init(void);
|
void _PG_init(void);
|
||||||
void _PG_fini(void);
|
|
||||||
|
|
||||||
#if (PG_VERSION_NUM >= 150000)
|
#if (PG_VERSION_NUM >= 150000)
|
||||||
static void repmgr_shmem_request(void);
|
static void repmgr_shmem_request(void);
|
||||||
@@ -145,21 +144,6 @@ _PG_init(void)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Module unload callback
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
_PG_fini(void)
|
|
||||||
{
|
|
||||||
/* Uninstall hook */
|
|
||||||
#if (PG_VERSION_NUM >= 150000)
|
|
||||||
shmem_request_hook = prev_shmem_request_hook;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
shmem_startup_hook = prev_shmem_startup_hook;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if (PG_VERSION_NUM >= 150000)
|
#if (PG_VERSION_NUM >= 150000)
|
||||||
/*
|
/*
|
||||||
* shmem_requst_hook: request shared memory
|
* shmem_requst_hook: request shared memory
|
||||||
|
|||||||
Reference in New Issue
Block a user