]> granicus.if.org Git - postgresql/commitdiff
Document that LocalSetXLogInsertAllowed can be re-executed.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 8 Aug 2009 16:39:17 +0000 (16:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 8 Aug 2009 16:39:17 +0000 (16:39 +0000)
Per comment from Simon.

src/backend/access/transam/xlog.c

index f2fb9ed8f568174347955d8a7b9927eefead42f9..db39115f1c5798148f2e1d28d8ede9b6be678c47 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.346 2009/08/07 19:29:49 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.347 2009/08/08 16:39:17 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -5951,6 +5951,9 @@ XLogInsertAllowed(void)
 
 /*
  * Make XLogInsertAllowed() return true in the current process only.
+ *
+ * Note: it is allowed to switch LocalXLogInsertAllowed back to -1 later,
+ * and even call LocalSetXLogInsertAllowed() again after that.
  */
 static void
 LocalSetXLogInsertAllowed(void)