We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7a541a commit c1ba7dbCopy full SHA for c1ba7db
src/backend/port/unix_latch.c
@@ -77,7 +77,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
78
*
79
* IDENTIFICATION
80
- * $PostgreSQL: pgsql/src/backend/port/unix_latch.c,v 1.2 2010/09/11 16:26:04 heikki Exp $
+ * $PostgreSQL: pgsql/src/backend/port/unix_latch.c,v 1.3 2010/09/13 18:01:20 heikki Exp $
81
82
*-------------------------------------------------------------------------
83
*/
@@ -156,6 +156,7 @@ OwnLatch(volatile Latch *latch)
156
if (selfpipe_readfd == -1)
157
initSelfPipe();
158
159
+ /* sanity check */
160
if (latch->owner_pid != 0)
161
elog(ERROR, "latch already owned");
162
latch->owner_pid = MyProcPid;
0 commit comments