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

Commitc1ba7db

Browse files
committed
Add a comment noting that the owner_pid test in OwnLatch is just a sanity
check, per request by Jeff Davis.
1 parentd7a541a commitc1ba7db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/port/unix_latch.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
* Portions Copyright (c) 1994, Regents of the University of California
7878
*
7979
* IDENTIFICATION
80-
* $PostgreSQL: pgsql/src/backend/port/unix_latch.c,v 1.2 2010/09/11 16:26:04 heikki Exp $
80+
* $PostgreSQL: pgsql/src/backend/port/unix_latch.c,v 1.3 2010/09/13 18:01:20 heikki Exp $
8181
*
8282
*-------------------------------------------------------------------------
8383
*/
@@ -156,6 +156,7 @@ OwnLatch(volatile Latch *latch)
156156
if (selfpipe_readfd==-1)
157157
initSelfPipe();
158158

159+
/* sanity check */
159160
if (latch->owner_pid!=0)
160161
elog(ERROR,"latch already owned");
161162
latch->owner_pid=MyProcPid;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp