Skip to content
Permalink
Browse files

Simplify trx_state_eq()

  • Loading branch information...
dr-m committed Sep 5, 2019
1 parent 2c9e75c commit 67e2252ba128c7a2da37a2d7a81d911881558b48
Showing with 1 addition and 6 deletions.
  1. +1 −6 storage/innobase/include/trx0trx.ic
@@ -48,19 +48,14 @@ trx_state_eq(
switch (trx->state) {
case TRX_STATE_PREPARED:
case TRX_STATE_PREPARED_RECOVERED:
case TRX_STATE_COMMITTED_IN_MEMORY:
ut_ad(!trx_is_autocommit_non_locking(trx));
return(trx->state == state);

case TRX_STATE_ACTIVE:

assert_trx_nonlocking_or_in_list(trx);
return(state == trx->state);

case TRX_STATE_COMMITTED_IN_MEMORY:

check_trx_state(trx);
return(state == trx->state);

case TRX_STATE_NOT_STARTED:
/* These states are not allowed for running transactions. */
ut_a(state == TRX_STATE_NOT_STARTED

0 comments on commit 67e2252

Please sign in to comment.
You can’t perform that action at this time.