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 3f5331758afd3a5aa21ba2feed2071804924cc49..528c205f6fb8abc0346d7cc583b72ae5ec8482f6 100644 (file)
@@ -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)