mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Error message editing in backend/bootstrap, /lib, /nodes, /port.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/port/sysv_sema.c,v 1.5 2003/03/25 16:15:44 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/port/sysv_sema.c,v 1.6 2003/07/22 23:30:39 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -177,7 +177,7 @@ IpcSemaphoreKill(IpcSemaphoreId semId)
|
||||
semId, strerror(errno));
|
||||
|
||||
/*
|
||||
* We used to report a failure via elog(WARNING), but that's pretty
|
||||
* We used to report a failure via ereport(WARNING), but that's pretty
|
||||
* pointless considering any client has long since disconnected ...
|
||||
*/
|
||||
}
|
||||
@@ -316,7 +316,7 @@ PGReserveSemaphores(int maxSemas, int port)
|
||||
mySemaSets = (IpcSemaphoreId *)
|
||||
malloc(maxSemaSets * sizeof(IpcSemaphoreId));
|
||||
if (mySemaSets == NULL)
|
||||
elog(PANIC, "Out of memory in PGReserveSemaphores");
|
||||
elog(PANIC, "out of memory");
|
||||
numSemaSets = 0;
|
||||
nextSemaKey = port * 1000;
|
||||
nextSemaNumber = SEMAS_PER_SET; /* force sema set alloc on 1st
|
||||
@@ -355,7 +355,7 @@ PGSemaphoreCreate(PGSemaphore sema)
|
||||
{
|
||||
/* Time to allocate another semaphore set */
|
||||
if (numSemaSets >= maxSemaSets)
|
||||
elog(PANIC, "PGSemaphoreCreate: too many semaphores created");
|
||||
elog(PANIC, "too many semaphores created");
|
||||
mySemaSets[numSemaSets] = IpcSemaphoreCreate(SEMAS_PER_SET);
|
||||
numSemaSets++;
|
||||
nextSemaNumber = 0;
|
||||
|
Reference in New Issue
Block a user