minor patch

Started by Massimo Dal Zottoover 27 years ago3 messages
#1Massimo Dal Zotto
dz@cs.unitn.it

Hi,

I have this small patch which fixes a typo in my previous lock patches.
Fortunately the bug affects only user locks.

------------------------------------------------------------------------------
*** src/backend/storage/lmgr/lock.c~	Wed Aug 26 09:00:55 1998
--- src/backend/storage/lmgr/lock.c	Thu Aug 27 22:57:56 1998
***************
*** 668,674 ****
  			{
  				SHMQueueDelete(&result->queue);
  				result = (XIDLookupEnt *) hash_search(xidTable,
! 													  (Pointer) &result,
  													  HASH_REMOVE, &found);
  				if (!result || !found) {
  					elog(NOTICE, "LockAcquire: remove xid, table corrupted");
--- 668,674 ----
  			{
  				SHMQueueDelete(&result->queue);
  				result = (XIDLookupEnt *) hash_search(xidTable,
! 													  (Pointer) result,
  													  HASH_REMOVE, &found);
  				if (!result || !found) {
  					elog(NOTICE, "LockAcquire: remove xid, table corrupted");
------------------------------------------------------------------------------

Massimo Dal Zotto

+----------------------------------------------------------------------+
|  Massimo Dal Zotto                email:  dz@cs.unitn.it             |
|  Via Marconi, 141                 phone:  ++39-461-534251            |
|  38057 Pergine Valsugana (TN)     www:  http://www.cs.unitn.it/~dz/  |
|  Italy                            pgp:  finger dz@tango.cs.unitn.it  |
+----------------------------------------------------------------------+
#2Bruce Momjian
maillist@candle.pha.pa.us
In reply to: Massimo Dal Zotto (#1)
Re: [PATCHES] minor patch

Applied.

[Charset iso-8859-1 unsupported, filtering to ASCII...]

Hi,

I have this small patch which fixes a typo in my previous lock patches.
Fortunately the bug affects only user locks.

------------------------------------------------------------------------------
*** src/backend/storage/lmgr/lock.c~	Wed Aug 26 09:00:55 1998
--- src/backend/storage/lmgr/lock.c	Thu Aug 27 22:57:56 1998
***************
*** 668,674 ****
{
SHMQueueDelete(&result->queue);
result = (XIDLookupEnt *) hash_search(xidTable,
! 													  (Pointer) &result,
HASH_REMOVE, &found);
if (!result || !found) {
elog(NOTICE, "LockAcquire: remove xid, table corrupted");
--- 668,674 ----
{
SHMQueueDelete(&result->queue);
result = (XIDLookupEnt *) hash_search(xidTable,
! 													  (Pointer) result,
HASH_REMOVE, &found);
if (!result || !found) {
elog(NOTICE, "LockAcquire: remove xid, table corrupted");
------------------------------------------------------------------------------

Massimo Dal Zotto

+----------------------------------------------------------------------+
|  Massimo Dal Zotto                email:  dz@cs.unitn.it             |
|  Via Marconi, 141                 phone:  ++39-461-534251            |
|  38057 Pergine Valsugana (TN)     www:  http://www.cs.unitn.it/~dz/  |
|  Italy                            pgp:  finger dz@tango.cs.unitn.it  |
+----------------------------------------------------------------------+
-- 
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)
#3Bruce Momjian
maillist@candle.pha.pa.us
In reply to: Massimo Dal Zotto (#1)
Re: [HACKERS] minor patch

Oops, Marc did it already. Too fast for me.
[Charset iso-8859-1 unsupported, filtering to ASCII...]

Hi,

I have this small patch which fixes a typo in my previous lock patches.
Fortunately the bug affects only user locks.

------------------------------------------------------------------------------
*** src/backend/storage/lmgr/lock.c~	Wed Aug 26 09:00:55 1998
--- src/backend/storage/lmgr/lock.c	Thu Aug 27 22:57:56 1998
***************
*** 668,674 ****
{
SHMQueueDelete(&result->queue);
result = (XIDLookupEnt *) hash_search(xidTable,
! 													  (Pointer) &result,
HASH_REMOVE, &found);
if (!result || !found) {
elog(NOTICE, "LockAcquire: remove xid, table corrupted");
--- 668,674 ----
{
SHMQueueDelete(&result->queue);
result = (XIDLookupEnt *) hash_search(xidTable,
! 													  (Pointer) result,
HASH_REMOVE, &found);
if (!result || !found) {
elog(NOTICE, "LockAcquire: remove xid, table corrupted");
------------------------------------------------------------------------------

Massimo Dal Zotto

+----------------------------------------------------------------------+
|  Massimo Dal Zotto                email:  dz@cs.unitn.it             |
|  Via Marconi, 141                 phone:  ++39-461-534251            |
|  38057 Pergine Valsugana (TN)     www:  http://www.cs.unitn.it/~dz/  |
|  Italy                            pgp:  finger dz@tango.cs.unitn.it  |
+----------------------------------------------------------------------+
-- 
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)