aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-08-08 16:39:17 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-08-08 16:39:17 +0000
commit97e14f6e931d31b6d30a5a30ebbdacdf9109d9ee (patch)
tree4cddc2548ecf521449c591b0270aca5d414f1a4b
parentf033f6d28b014ff21c8ed250f55062c2fb1b12e8 (diff)
downloadpostgresql-97e14f6e931d31b6d30a5a30ebbdacdf9109d9ee.tar.gz
postgresql-97e14f6e931d31b6d30a5a30ebbdacdf9109d9ee.zip
Document that LocalSetXLogInsertAllowed can be re-executed.
Per comment from Simon.
-rw-r--r--src/backend/access/transam/xlog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index f2fb9ed8f56..db39115f1c5 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -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)