diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-08-08 16:39:25 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-08-08 16:39:25 +0000 |
commit | 6f2fb5d814f81f8eada46d835104b28b1397bfad (patch) | |
tree | a9e4dd5378cf1ae02c9908bd6d10632248c520d5 | |
parent | 8a62c9a95766832a204400aaa3468c6c31d74765 (diff) | |
download | postgresql-6f2fb5d814f81f8eada46d835104b28b1397bfad.tar.gz postgresql-6f2fb5d814f81f8eada46d835104b28b1397bfad.zip |
Document that LocalSetXLogInsertAllowed can be re-executed.
Per comment from Simon.
-rw-r--r-- | src/backend/access/transam/xlog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index b9dbe8f1316..618ad2281e9 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.345.2.1 2009/08/07 19:29:57 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.345.2.2 2009/08/08 16:39:25 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) |