------------------
---TRANSACTION 43DF0254C, ACTIVE 51 sec updating or deleting
mysql tables in use 1, locked 1
LOCK WAIT 3 lock struct(s), heap size 1248, 2 row lock(s), undo log entries 1
MySQL thread id 118879, OS thread handle 0x7f51950b6700, query id 18995841 10.0.0.0 mysql_user Updating
UPDATE tbl_A SET status=N, value='.....', user_id=N WHERE id = N
------- TRX HAS BEEN WAITING 51 SEC FOR THIS LOCK TO BE GRANTED:
RECORD LOCKS space id 2186 page no 188857 n bits 688 index `idx_status_type` of table `db`.`tbl_A` trx id 43DF0254C lock_mode X locks gap before rec insert intention waiting
Record lock, heap no 497 PHYSICAL RECORD: n_fields 3; compact format; info bits 0
0: len 1; hex 02; asc ;;
1: len 1; hex 01; asc ;;
2: len 8; hex 00000000011c1f0f; asc ;;
------------------
---TRANSACTION 43DF0216B, ACTIVE 65 sec fetching rows, thread declared inside InnoDB 155
mysql tables in use 1, locked 1
794767 lock struct(s), heap size 71694776, 13900037 row lock(s)
MySQL thread id 118812, OS thread handle 0x7f51951dc700, query id 18995134 10.0.0.1 mysql_user Searching rows for update
UPDATE tbl_A SET status=N WHERE (status=N or status=N) and user_id=N limit N
---TRANSACTION 43DF0254C, ACTIVE 51 sec updating or deleting
mysql tables in use 1, locked 1
LOCK WAIT 3 lock struct(s), heap size 1248, 2 row lock(s), undo log entries 1
MySQL thread id 118879, OS thread handle 0x7f51950b6700, query id 18995841 10.0.0.0 mysql_user Updating
UPDATE tbl_A SET status=N, value='.....', user_id=N WHERE id = N
------- TRX HAS BEEN WAITING 51 SEC FOR THIS LOCK TO BE GRANTED:
RECORD LOCKS space id 2186 page no 188857 n bits 688 index `idx_status_type` of table `db`.`tbl_A` trx id 43DF0254C lock_mode X locks gap before rec insert intention waiting
Record lock, heap no 497 PHYSICAL RECORD: n_fields 3; compact format; info bits 0
0: len 1; hex 02; asc ;;
1: len 1; hex 01; asc ;;
2: len 8; hex 00000000011c1f0f; asc ;;
------------------
---TRANSACTION 43DF0216B, ACTIVE 65 sec fetching rows, thread declared inside InnoDB 155
mysql tables in use 1, locked 1
794767 lock struct(s), heap size 71694776, 13900037 row lock(s)
MySQL thread id 118812, OS thread handle 0x7f51951dc700, query id 18995134 10.0.0.1 mysql_user Searching rows for update
UPDATE tbl_A SET status=N WHERE (status=N or status=N) and user_id=N limit N