From: Massimo Dal Zotto <dz@cs.unitn.it>
authorMarc G. Fournier <scrappy@hub.org>
Fri, 28 Aug 1998 12:08:03 +0000 (12:08 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Fri, 28 Aug 1998 12:08:03 +0000 (12:08 +0000)
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

index c499c52a85ab7f21af2f936c05e3fa27b4fea4fa..88bd65ff62369a0b03431a1d91435040ffaddfaa 100644 (file)
@@ -668,7 +668,7 @@ LockAcquire(LOCKMETHOD lockmethod, LOCKTAG *locktag, LOCKMODE lockmode)
                        {
                                SHMQueueDelete(&result->queue);
                                result = (XIDLookupEnt *) hash_search(xidTable,
-                                                                                                         (Pointer) &result,
+                                                                                                         (Pointer) result,
                                                                                                          HASH_REMOVE, &found);
                                if (!result || !found) {
                                        elog(NOTICE, "LockAcquire: remove xid, table corrupted");