aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/elog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/utils/elog.h')
-rw-r--r--src/include/utils/elog.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h
index acb82049730..37db2c7aaf8 100644
--- a/src/include/utils/elog.h
+++ b/src/include/utils/elog.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: elog.h,v 1.20 2000/12/06 17:25:45 tgl Exp $
+ * $Id: elog.h,v 1.21 2000/12/18 00:44:50 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -28,24 +28,24 @@ extern int Use_syslog;
#endif
/*
- * If StopIfError > 0 signal handlers mustn't do
+ * If CritSectionCount > 0, signal handlers mustn't do
* elog(ERROR|FATAL), instead remember what action is
- * required with QueryCancel & ExitAfterAbort.
+ * required with QueryCancel & ProcDiePending.
*/
-extern uint32 StopIfError; /* duplicates access/xlog.h */
+extern uint32 CritSectionCount; /* duplicates access/xlog.h */
extern bool QueryCancel; /* duplicates miscadmin.h */
-extern bool ExitAfterAbort;
+extern bool ProcDiePending;
-#define START_CRIT_CODE (StopIfError++)
+#define START_CRIT_CODE (CritSectionCount++)
#define END_CRIT_CODE \
do { \
- if (!StopIfError) \
+ if (CritSectionCount == 0) \
elog(STOP, "Not in critical section"); \
- StopIfError--; \
- if (!StopIfError && QueryCancel) \
+ CritSectionCount--; \
+ if (CritSectionCount == 0 && QueryCancel) \
{ \
- if (ExitAfterAbort) \
+ if (ProcDiePending) \
elog(FATAL, "The system is shutting down"); \
else \
elog(ERROR, "Query was cancelled."); \