{
switch (cancelMode)
{
+ /*
+ * XXXHS: We don't yet have a clean way to cancel an
+ * idle-in-transaction session, so make it FATAL instead.
+ */
+ case CONFLICT_MODE_ERROR:
+ cancelMode = CONFLICT_MODE_FATAL;
+ break;
+
case CONFLICT_MODE_ERROR_IF_NOT_IDLE:
/*
* If we still have a snapshot then we must
* cancel, else we are free to go.
- * As above, cancel means FATAL, for now.
+ * XXXHS: As above, cancel means FATAL, for now.
*/
if (MyProc->xmin == 0)
- {
cancelMode = CONFLICT_MODE_NOT_SET;
- break;
- }
else
- cancelMode = CONFLICT_MODE_ERROR;
- /* drop through */
-
- /*
- * XXXHS: We don't yet have a clean way to cancel an
- * idle-in-transaction session, so make it FATAL instead.
- */
- case CONFLICT_MODE_ERROR:
- cancelMode = CONFLICT_MODE_FATAL;
+ cancelMode = CONFLICT_MODE_FATAL;
break;
default: