Commit b686927f authored by Marc G. Fournier's avatar Marc G. Fournier

From: Massimo Dal Zotto <dz@cs.unitn.it>

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

-
parent d8dbbc8c
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.33 1998/08/25 21:20:26 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.34 1998/08/28 12:08:03 scrappy Exp $
* *
* NOTES * NOTES
* Outside modules can create a lock table and acquire/release * Outside modules can create a lock table and acquire/release
...@@ -668,7 +668,7 @@ LockAcquire(LOCKMETHOD lockmethod, LOCKTAG *locktag, LOCKMODE lockmode) ...@@ -668,7 +668,7 @@ LockAcquire(LOCKMETHOD lockmethod, LOCKTAG *locktag, LOCKMODE lockmode)
{ {
SHMQueueDelete(&result->queue); SHMQueueDelete(&result->queue);
result = (XIDLookupEnt *) hash_search(xidTable, result = (XIDLookupEnt *) hash_search(xidTable,
(Pointer) &result, (Pointer) result,
HASH_REMOVE, &found); HASH_REMOVE, &found);
if (!result || !found) { if (!result || !found) {
elog(NOTICE, "LockAcquire: remove xid, table corrupted"); elog(NOTICE, "LockAcquire: remove xid, table corrupted");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment