mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
Document that LocalSetXLogInsertAllowed can be re-executed.
Per comment from Simon.
This commit is contained in:
parent
f033f6d28b
commit
97e14f6e93
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user