1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-10 17:42:29 +03:00

Mop up from caddr_t -> Datum conversion to make things extra type safe

This commit is contained in:
Peter Eisentraut
2000-10-02 21:45:33 +00:00
parent 416bbbffa3
commit 65577dc83e
4 changed files with 17 additions and 14 deletions

View File

@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.33 2000/10/02 19:42:48 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.34 2000/10/02 21:45:32 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -27,7 +27,7 @@ SISeg *shmInvalBuffer;
static void SISegmentAttach(IpcMemoryId shmid);
static void SISegInit(SISeg *segP, int maxBackends);
static void CleanupInvalidationState(int status, SISeg *segP);
static void CleanupInvalidationState(int status, Datum arg);
static void SISetProcStateInvalid(SISeg *segP);
/*
@@ -200,11 +200,14 @@ SIBackendInit(SISeg *segP)
*
* This function is called via on_shmem_exit() during backend shutdown,
* so the caller has NOT acquired the lock for us.
*
* arg is really of type "SISeg*".
*/
static void
CleanupInvalidationState(int status,
SISeg *segP)
CleanupInvalidationState(int status, Datum arg)
{
SISeg *segP = (void*) DatumGetPointer(arg);
Assert(PointerIsValid(segP));
SpinAcquire(SInvalLock);