Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 97e14f6

Browse files
committed
Document that LocalSetXLogInsertAllowed can be re-executed.
Per comment from Simon.
1 parent f033f6d commit 97e14f6

File tree

1 file changed

+4
-1
lines changed
  • src/backend/access/transam

1 file changed

+4
-1
lines changed

src/backend/access/transam/xlog.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.346 2009/08/07 19:29:49 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.347 2009/08/08 16:39:17 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -5951,6 +5951,9 @@ XLogInsertAllowed(void)
59515951

59525952
/*
59535953
* Make XLogInsertAllowed() return true in the current process only.
5954+
*
5955+
* Note: it is allowed to switch LocalXLogInsertAllowed back to -1 later,
5956+
* and even call LocalSetXLogInsertAllowed() again after that.
59545957
*/
59555958
static void
59565959
LocalSetXLogInsertAllowed(void)

0 commit comments

Comments
 (0)