From: Tom Lane Date: Thu, 26 Aug 2004 17:23:30 +0000 (+0000) Subject: Fix user locks. Broken some time ago for all platforms by Windows-related X-Git-Tag: REL8_0_0BETA2~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=337b513e073cf450ae064a335574015bdeb68610;p=postgresql Fix user locks. Broken some time ago for all platforms by Windows-related changes. --- diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index f7978fca7a..e61eabb70e 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/lmgr/lock.c,v 1.135 2004/07/17 03:28:51 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/storage/lmgr/lock.c,v 1.136 2004/08/26 17:23:30 tgl Exp $ * * NOTES * Outside modules can create a lock table and acquire/release @@ -337,6 +337,9 @@ LockMethodTableRename(LOCKMETHODID lockmethodid) NumLockMethods++; LockMethods[newLockMethodId] = LockMethods[lockmethodid]; + LockMethodLockHash[newLockMethodId] = LockMethodLockHash[lockmethodid]; + LockMethodProcLockHash[newLockMethodId] = LockMethodProcLockHash[lockmethodid]; + return newLockMethodId; }