Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8a40400

Browse files
committed
elog() was set up to call abort() if it saw an ERROR or FATAL exit
during InitProcessingMode and the CurrentTransactionState was neitherTRANS_DEFAULT nor TRANS_DISABLED. Unfortunately, after someone's recentchange to start the transaction manager earlier in startup than it usedto be started, that caused an abort() and consequent database systemreset on quite harmless errors (such as rejecting an invalid user name!).As far as I can see, the test on CurrentTransactionState was completelyuseless anyway, so I've removed it.
1 parentb16bd18 commit8a40400

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

‎src/backend/utils/error/elog.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.52 1999/11/22 02:06:31 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.53 1999/12/30 23:03:40 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -111,15 +111,9 @@ elog(int lev, const char *fmt, ...)
111111

112112
if (lev==ERROR||lev==FATAL)
113113
{
114+
/* this is probably redundant... */
114115
if (IsInitProcessingMode())
115-
{
116-
externTransactionStateCurrentTransactionState;
117-
118-
if (CurrentTransactionState->state!=TRANS_DEFAULT&&
119-
CurrentTransactionState->state!=TRANS_DISABLED)
120-
abort();
121116
lev=FATAL;
122-
}
123117
}
124118

125119
/* choose message prefix and indent level */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp