mirror of
https://github.com/postgres/postgres.git
synced 2025-08-25 20:23:07 +03:00
Significant cleanups in SysV IPC handling (shared mem and semaphores).
IPC key assignment will now work correctly even when multiple postmasters are using same logical port number (which is possible given -k switch). There is only one shared-mem segment per postmaster now, not 3. Rip out broken code for non-TAS case in bufmgr and xlog, substitute a complete S_LOCK emulation using semaphores in spin.c. TAS and non-TAS logic is now exactly the same. When deadlock is detected, "Deadlock detected" is now the elog(ERROR) message, rather than a NOTICE that comes out before an unhelpful ERROR.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: sinvaladt.h,v 1.23 2000/11/12 20:51:52 tgl Exp $
|
||||
* $Id: sinvaladt.h,v 1.24 2000/11/28 23:27:57 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -107,15 +107,13 @@ typedef struct SISeg
|
||||
} SISeg;
|
||||
|
||||
|
||||
extern SISeg *shmInvalBuffer; /* pointer to the shared buffer segment,
|
||||
* set by SISegmentAttach() */
|
||||
extern SISeg *shmInvalBuffer; /* pointer to the shared inval buffer */
|
||||
|
||||
|
||||
/*
|
||||
* prototypes for functions in sinvaladt.c
|
||||
*/
|
||||
extern int SISegmentInit(bool createNewSegment, IPCKey key,
|
||||
int maxBackends);
|
||||
extern void SIBufferInit(int maxBackends);
|
||||
extern int SIBackendInit(SISeg *segP);
|
||||
|
||||
extern bool SIInsertDataEntry(SISeg *segP, SharedInvalidData *data);
|
||||
|
Reference in New Issue
Block a user