Skip to content

Commit

Permalink
[PGPRO-7424] Remove _PG_fini
Browse files Browse the repository at this point in the history
tags: ptrack
  • Loading branch information
Mikhail Litsarev committed Mar 18, 2024
1 parent 3e7c702 commit 107b2d0
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions ptrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ static mdextend_hook_type prev_mdextend_hook = NULL;
static ProcessSyncRequests_hook_type prev_ProcessSyncRequests_hook = NULL;

void _PG_init(void);
void _PG_fini(void);

static void ptrack_shmem_startup_hook(void);
static void ptrack_copydir_hook(const char *path);
Expand Down Expand Up @@ -155,20 +154,6 @@ ptrack_shmem_request(void)
}
#endif

/*
* Module unload callback
*/
void
_PG_fini(void)
{
/* Uninstall hooks */
shmem_startup_hook = prev_shmem_startup_hook;
copydir_hook = prev_copydir_hook;
mdwrite_hook = prev_mdwrite_hook;
mdextend_hook = prev_mdextend_hook;
ProcessSyncRequests_hook = prev_ProcessSyncRequests_hook;
}

/*
* ptrack_shmem_startup hook: allocate or attach to shared memory.
*/
Expand Down

0 comments on commit 107b2d0

Please sign in to comment.