summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2009-08-08 16:39:17 +0000
committerTom Lane2009-08-08 16:39:17 +0000
commit4d0015c5f1ea2253206e93b44ed13c1a5f6b8114 (patch)
tree65ef1ebf738c796ddc2b2cdd271fe2c23e163eb5
parent3c50e1e69183a799dfb9edaaee4af011b640b043 (diff)
Document that LocalSetXLogInsertAllowed can be re-executed.
Per comment from Simon.
-rw-r--r--src/backend/access/transam/xlog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 3f5331758a..528c205f6f 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -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)