diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2005-11-03 17:11:40 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2005-11-03 17:11:40 +0000 |
commit | 902377c465031947d747bb2e3912b22a92329b7f (patch) | |
tree | 6586e15af12609b6135275d06d2339adc669a94e /src/backend/utils/error/elog.c | |
parent | 76c9ac8ebbba391c3062bf10cc6d8b187746b6eb (diff) | |
download | postgresql-902377c465031947d747bb2e3912b22a92329b7f.tar.gz postgresql-902377c465031947d747bb2e3912b22a92329b7f.zip |
Rename the members of CommandDest enum so they don't collide with other uses of
those names. (Debug and None were pretty bad names anyway.) I hope I catched
all uses of the names in comments too.
Diffstat (limited to 'src/backend/utils/error/elog.c')
-rw-r--r-- | src/backend/utils/error/elog.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index b4f1000be86..64403ce9b18 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -42,7 +42,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.165 2005/10/15 02:49:32 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.166 2005/11/03 17:11:39 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -223,7 +223,7 @@ errstart(int elevel, const char *filename, int lineno, } /* Determine whether message is enabled for client output */ - if (whereToSendOutput == Remote && elevel != COMMERROR) + if (whereToSendOutput == DestRemote && elevel != COMMERROR) { /* * client_min_messages is honored only after we complete the @@ -374,7 +374,7 @@ errfinish(int dummy,...) * we must do this even if client is fool enough to have set * client_min_messages above FATAL, so don't look at output_to_client. */ - if (elevel >= FATAL && whereToSendOutput == Remote) + if (elevel >= FATAL && whereToSendOutput == DestRemote) pq_endcopyout(true); /* Emit the message to the right places */ @@ -412,8 +412,8 @@ errfinish(int dummy,...) * If we just reported a startup failure, the client will disconnect * on receiving it, so don't send any more to the client. */ - if (PG_exception_stack == NULL && whereToSendOutput == Remote) - whereToSendOutput = None; + if (PG_exception_stack == NULL && whereToSendOutput == DestRemote) + whereToSendOutput = DestNone; /* * fflush here is just to improve the odds that we get to see the @@ -1684,7 +1684,7 @@ send_message_to_server_log(ErrorData *edata) #endif /* WIN32 */ /* Write to stderr, if enabled */ - if ((Log_destination & LOG_DESTINATION_STDERR) || whereToSendOutput == Debug) + if ((Log_destination & LOG_DESTINATION_STDERR) || whereToSendOutput == DestDebug) { #ifdef WIN32 |