From: Tom Lane Date: Sat, 8 Aug 2009 16:39:17 +0000 (+0000) Subject: Document that LocalSetXLogInsertAllowed can be re-executed. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=4d0015c5f1ea2253206e93b44ed13c1a5f6b8114;p=users%2Fsimon%2Fpostgres.git Document that LocalSetXLogInsertAllowed can be re-executed. Per comment from Simon. --- 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)