From: Massimo Dal Zotto
authorMarc G. Fournier
Fri, 28 Aug 1998 12:08:03 +0000 (12:08 +0000)
committerMarc G. Fournier
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 b35008a3bb8afc84d393eddbd4d8e3a07c7ade8e..52ddd635832e6a2ebc044044225b9234545ddd34 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * 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
  *   Outside modules can create a lock table and acquire/release
@@ -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");