diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-08-10 20:29:18 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-08-10 20:29:18 +0000 |
commit | c5354dff2052e6922ae7add998753d9bafcd19b0 (patch) | |
tree | 59fea2bf500334eeb549109193b20ffbe2580430 /src/backend/port/ipc_test.c | |
parent | 8be9bd83acd43762cf0dc8a45229a693896e7755 (diff) |
This patch removes a lot of unused code related to assertions and
error handling, and simplifies the code that remains. Apparently,
the code that left Berkeley had a whole "error handling subsystem",
which exceptions and whatnot. Since we don't use that anymore,
there's no reason to keep it around.
The regression tests pass with the patch applied. Unless anyone
sees a problem, please apply.
Neil Conway
Diffstat (limited to 'src/backend/port/ipc_test.c')
-rw-r--r-- | src/backend/port/ipc_test.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/backend/port/ipc_test.c b/src/backend/port/ipc_test.c index 9805ed5657e..2421a7e5a02 100644 --- a/src/backend/port/ipc_test.c +++ b/src/backend/port/ipc_test.c @@ -21,7 +21,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/port/ipc_test.c,v 1.3 2002/06/20 20:29:33 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/port/ipc_test.c,v 1.4 2002/08/10 20:29:18 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -34,7 +34,6 @@ #include "storage/ipc.h" #include "storage/pg_sema.h" #include "storage/pg_shmem.h" -#include "utils/exc.h" /********* stuff needed to satisfy references in shmem/sema code *********/ @@ -56,8 +55,6 @@ int NBuffers = DEF_NBUFFERS; bool assert_enabled = true; #endif -Exception FailedAssertion = {"Failed Assertion"}; - #define MAX_ON_EXITS 20 @@ -120,14 +117,12 @@ ProcessInterrupts(void) int ExceptionalCondition(char *conditionName, - Exception *exceptionP, - char *detail, + char *errorType, char *fileName, int lineNumber) { - fprintf(stderr, "TRAP: %s(\"%s:%s\", File: \"%s\", Line: %d)\n", - exceptionP->message, conditionName, - (detail == NULL ? "" : detail), + fprintf(stderr, "TRAP: %s(\"%s\", File: \"%s\", Line: %d)\n", + errorType, conditionName, fileName, lineNumber); abort(); return 0; |