]> granicus.if.org Git - postgresql/commitdiff
Add an abort() call to ExceptionalCondition so that is Assert is
authorMarc G. Fournier <scrappy@hub.org>
Mon, 11 Nov 1996 11:49:40 +0000 (11:49 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Mon, 11 Nov 1996 11:49:40 +0000 (11:49 +0000)
called, it dumps core...

ABORT_ON_ASSERT must be defined, as I don't know if this is the correct
way to do this...

src/backend/utils/error/assert.c

index c100c2e02f665c99db2d10e293ee7cffe0a71664..bdc4f0b0e3998c9e58bedaff1d36cfa8f3b84663 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/utils/error/assert.c,v 1.2 1996/11/11 11:29:15 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/utils/error/assert.c,v 1.3 1996/11/11 11:49:40 scrappy Exp $
  *
  * NOTE
  *    This should eventually work with elog(), dlog(), etc.
@@ -49,7 +49,10 @@ ExceptionalCondition(char* conditionName,
                exceptionP->message, conditionName, detail,
                fileName, lineNumber);
     }
-    
+
+#ifdef ABORT_ON_ASSERT
+    abort();
+#endif
     /*
      * XXX Depending on the Exception and tracing conditions, you will
      * XXX want to stop here immediately and maybe dump core.