Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1fe0466

Browse files
committed
Fix comment in LockReleaseAll() on when locallock->nLock can be zero
We reach this case also e.g. when a deadlock is detected, not onlywhen we run out of memory.Reviewed-by: Maxim OrlovDiscussion:https://www.postgresql.org/message-id/7c2090cd-a72a-4e34-afaa-6dd2ef31440e@iki.fi
1 parent99b937a commit1fe0466

File tree

1 file changed

+2
-3
lines changed
  • src/backend/storage/lmgr

1 file changed

+2
-3
lines changed

‎src/backend/storage/lmgr/lock.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2258,9 +2258,8 @@ LockReleaseAll(LOCKMETHODID lockmethodid, bool allLocks)
22582258
while ((locallock= (LOCALLOCK*)hash_seq_search(&status))!=NULL)
22592259
{
22602260
/*
2261-
* If the LOCALLOCK entry is unused, we must've run out of shared
2262-
* memory while trying to set up this lock. Just forget the local
2263-
* entry.
2261+
* If the LOCALLOCK entry is unused, something must've gone wrong
2262+
* while trying to acquire this lock. Just forget the local entry.
22642263
*/
22652264
if (locallock->nLocks==0)
22662265
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp