Skip to content

Commit 0ae19c1

Browse files
committed
Remove unnecessary, inconsistent flag resets in ProcessInterrupts.
1 parent 1db0989 commit 0ae19c1

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/backend/tcop/postgres.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.583 2010/01/16 10:05:50 sriggs Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.584 2010/01/17 04:27:54 tgl Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -2867,22 +2867,14 @@ ProcessInterrupts(void)
28672867
ImmediateInterruptOK = false; /* not idle anymore */
28682868
DisableNotifyInterrupt();
28692869
DisableCatchupInterrupt();
2870-
28712870
if (DoingCommandRead)
2872-
{
2873-
ProcDiePending = false;
2874-
QueryCancelPending = false;
28752871
ereport(FATAL,
28762872
(errcode(ERRCODE_ADMIN_SHUTDOWN),
28772873
errmsg("terminating connection due to conflict with recovery")));
2878-
}
28792874
else
2880-
{
2881-
QueryCancelPending = false;
28822875
ereport(ERROR,
28832876
(errcode(ERRCODE_QUERY_CANCELED),
28842877
errmsg("canceling statement due to conflict with recovery")));
2885-
}
28862878
}
28872879

28882880
/*

0 commit comments

Comments
 (0)