*** (1) TRANSACTION: TRANSACTION 276290313, ACTIVE 1 sec fetching rows mysql tables in use 2, locked 2 LOCK WAIT 1289 lock struct(s), heap size 155768, 51363 row lock(s) MariaDB thread id 2100094, OS thread handle 139921466681088, query id 1823729049 localhost moodleuser Updating DELETE FROM mdl_question_response_count WHERE analysisid IN ( SELECT id FROM mdl_question_response_analysis WHERE hashcode= '81acdae74224b4994db17fcaf750da6dbe662a13' AND whichtries = 'alltries' AND questionid = '450906' ) *** WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 741 page no 74 n bits 216 index PRIMARY of table `moodle`.`mdl_question_response_count` trx id 276290313 lock_mode X locks rec but not gap waiting Record lock, heap no 161 PHYSICAL RECORD: n_fields 6; compact format; info bits 32 0: len 8; hex 800000000044d8ce; asc D ;; 1: len 6; hex 00001077db07; asc w ;; 2: len 7; hex 78000015ae0b28; asc x (;; 3: len 8; hex 800000000044083a; asc D :;; 4: len 8; hex 8000000000000001; asc ;; 5: len 8; hex 8000000000000002; asc ;; *** CONFLICTING WITH: RECORD LOCKS space id 741 page no 74 n bits 216 index PRIMARY of table `moodle`.`mdl_question_response_count` trx id 276290311 lock_mode X locks rec but not gap Record lock, heap no 161 PHYSICAL RECORD: n_fields 6; compact format; info bits 32 0: len 8; hex 800000000044d8ce; asc D ;; 1: len 6; hex 00001077db07; asc w ;; 2: len 7; hex 78000015ae0b28; asc x (;; 3: len 8; hex 800000000044083a; asc D :;; 4: len 8; hex 8000000000000001; asc ;; 5: len 8; hex 8000000000000002; asc ;; Record lock, heap no 162 PHYSICAL RECORD: n_fields 6; compact format; info bits 32 0: len 8; hex 800000000044d8cf; asc D ;; 1: len 6; hex 00001077db07; asc w ;; 2: len 7; hex 78000015ae0b5d; asc x ];; 3: len 8; hex 800000000044083b; asc D ;;; 4: len 8; hex 8000000000000001; asc ;; 5: len 8; hex 8000000000000005; asc ;; *** (2) TRANSACTION: TRANSACTION 276290311, ACTIVE 1 sec starting index read mysql tables in use 1, locked 1 LOCK WAIT 1516 lock struct(s), heap size 188536, 68099 row lock(s), undo log entries 2 MariaDB thread id 2095616, OS thread handle 139921452046080, query id 1823731352 localhost moodleuser Updating DELETE FROM mdl_question_response_analysis WHERE hashcode = 'ee04f53adf1ae8712faca9da02b8d1b10a165c03' AND whichtries = 'alltries' AND questionid = '424920' *** WAITING FOR THIS LOCK TO BE GRANTED: RECORD LOCKS space id 740 page no 2568 n bits 112 index PRIMARY of table `moodle`.`mdl_question_response_analysis` trx id 276290311 lock_mode X locks rec but not gap waiting Record lock, heap no 50 PHYSICAL RECORD: n_fields 12; compact format; info bits 0 0: len 8; hex 8000000000430757; asc C W;; 1: len 6; hex 000000000000; asc ;; 2: len 7; hex 80000000000000; asc ;; 3: len 30; hex 306534306464616531393736383535663161613332653266613630366164; asc 0e40ddae1976855f1aa32e2fa606ad; (total 40 bytes); 4: len 8; hex 616c6c7472696573; asc alltries;; 5: len 8; hex 800000006498cac1; asc d ;; 6: len 8; hex 8000000000067bd8; asc { ;; 7: len 8; hex 8000000000000001; asc ;; 8: len 6; hex 343234393230; asc 424920;; 9: len 6; hex 383430393131; asc 840911;; 10: len 30; hex 476566657274696774652050726f64756b74652c20646965206e69636874; asc Gefertigte Produkte, die nicht; (total 196 bytes); 11: len 8; hex 8000000001000000; asc ;; *** CONFLICTING WITH: RECORD LOCKS space id 740 page no 2568 n bits 112 index PRIMARY of table `moodle`.`mdl_question_response_analysis` trx id 276290311 lock mode S locks rec but not gap Record lock, heap no 2 PHYSICAL RECORD: n_fields 12; compact format; info bits 0 0: len 8; hex 8000000000430727; asc C ';; 1: len 6; hex 000000000000; asc ;; 2: len 7; hex 80000000000000; asc ;; 3: len 30; hex 306534306464616531393736383535663161613332653266613630366164; asc 0e40ddae1976855f1aa32e2fa606ad; (total 40 bytes); 4: len 8; hex 616c6c7472696573; asc alltries;; 5: len 8; hex 800000006498cabf; asc d ;; 6: len 8; hex 80000000000639e8; asc 9 ;; 7: len 8; hex 8000000000000001; asc ;; 8: len 6; hex 373933303331; asc 793031;; 9: len 6; hex 373933303331; asc 793031;; 10: len 30; hex 496e736f757263696e6720756e6420446f6d6573746963736f757263696e; asc Insourcing und Domesticsourcin; (total 32 bytes); 11: len 8; hex 7fffffffffff7dca; asc } ;; ... *** WE ROLL BACK TRANSACTION (1)