Commit fa5b997a authored by marko's avatar marko

branches/zip: que_thr_dec_refer_count(): Cleanup. Remove unused variable sess.

parent ac7cba97
...@@ -805,13 +805,11 @@ que_thr_dec_refer_count( ...@@ -805,13 +805,11 @@ que_thr_dec_refer_count(
{ {
que_fork_t* fork; que_fork_t* fork;
trx_t* trx; trx_t* trx;
sess_t* sess;
ulint fork_type; ulint fork_type;
ibool stopped; ibool stopped;
fork = thr->common.parent; fork = thr->common.parent;
trx = thr_get_trx(thr); trx = thr_get_trx(thr);
sess = trx->sess;
mutex_enter(&kernel_mutex); mutex_enter(&kernel_mutex);
...@@ -838,7 +836,7 @@ que_thr_dec_refer_count( ...@@ -838,7 +836,7 @@ que_thr_dec_refer_count(
*next_thr = thr; *next_thr = thr;
} else { } else {
ut_a(0); ut_error;
srv_que_task_enqueue_low(thr); srv_que_task_enqueue_low(thr);
} }
...@@ -869,7 +867,8 @@ que_thr_dec_refer_count( ...@@ -869,7 +867,8 @@ que_thr_dec_refer_count(
if (que_fork_all_thrs_in_state(fork, QUE_THR_COMPLETED)) { if (que_fork_all_thrs_in_state(fork, QUE_THR_COMPLETED)) {
if (fork_type == QUE_FORK_ROLLBACK) { switch (fork_type) {
case QUE_FORK_ROLLBACK:
/* This is really the undo graph used in rollback, /* This is really the undo graph used in rollback,
no roll_node in this graph */ no roll_node in this graph */
...@@ -877,17 +876,16 @@ que_thr_dec_refer_count( ...@@ -877,17 +876,16 @@ que_thr_dec_refer_count(
ut_ad(trx->handling_signals == TRUE); ut_ad(trx->handling_signals == TRUE);
trx_finish_rollback_off_kernel(fork, trx, next_thr); trx_finish_rollback_off_kernel(fork, trx, next_thr);
break;
} else if (fork_type == QUE_FORK_PURGE) { case QUE_FORK_PURGE:
case QUE_FORK_RECOVERY:
/* Do nothing */ case QUE_FORK_MYSQL_INTERFACE:
} else if (fork_type == QUE_FORK_RECOVERY) {
/* Do nothing */ /* Do nothing */
} else if (fork_type == QUE_FORK_MYSQL_INTERFACE) { break;
/* Do nothing */ default:
} else {
ut_error; /* not used in MySQL */ ut_error; /* not used in MySQL */
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment