|
marko The boundaries are detected for both inserts in both plain CREATE TABLE and PARTITION one.
The gdb outputs indicate that even for plain CREATE TABLE trx->bulk_insert is set to false:
We can also note that ha_external_lock is called 4 times: 2 for each INSERT statement, indicating lock and unlock respectively:
Thread 2 hit Breakpoint 5, mysql_create_table (thd=0x555a2488ee68, create_table=0x555a248a10a8, create_info=0x7fb5002a2e50, alter_info=0x7fb5002a2d68) at ../sql/sql_table.cc:4602
|
4602 TABLE_LIST *pos_in_locked_tables= 0;
|
(gdb) bt
|
#0 mysql_create_table (thd=0x555a2488ee68, create_table=0x555a248a10a8, create_info=0x7fb5002a2e50, alter_info=0x7fb5002a2d68) at ../sql/sql_table.cc:4602
|
#1 0x0000555a21357ca1 in Sql_cmd_create_table_like::execute (this=0x555a248a1048, thd=0x555a2488ee68) at ../sql/sql_table.cc:11770
|
#2 0x0000555a21228a67 in mysql_execute_command (thd=0x555a2488ee68) at ../sql/sql_parse.cc:5983
|
#3 0x0000555a21214821 in mysql_parse (thd=0x555a2488ee68, rawbuf=0x555a248a0fa0 "CREATE TABLE t (i INT) ENGINE=InnoDB", length=36, parser_state=0x7fb5002a52d8) at ../sql/sql_parse.cc:8016
|
#4 0x0000555a212110b2 in dispatch_command (command=COM_QUERY, thd=0x555a2488ee68, packet=0x555a24897ad9 "CREATE TABLE t (i INT) ENGINE=InnoDB", packet_length=36, blocking=true) at ../sql/sql_parse.cc:1897
|
#5 0x0000555a21215ad5 in do_command (thd=0x555a2488ee68, blocking=true) at ../sql/sql_parse.cc:1406
|
#6 0x0000555a2141df24 in do_handle_one_connection (connect=0x555a2484f5f8, put_in_cache=true) at ../sql/sql_connect.cc:1410
|
#7 0x0000555a2141dc5a in handle_one_connection (arg=0x555a2483d998) at ../sql/sql_connect.cc:1312
|
#8 0x0000555a21a51349 in pfs_spawn_thread (arg=0x555a24797f98) at ../storage/perfschema/pfs.cc:2201
|
#9 0x00007fb50ea03299 in start_thread () from /usr/lib/libpthread.so.0
|
#10 0x00007fb50e72c053 in clone () from /usr/lib/libc.so.6
|
|
|
(gdb) n
|
4603 MDL_ticket *mdl_ticket= 0;
|
(gdb) c
|
Continuing.
|
|
Thread 2 hit Breakpoint 2, mysql_insert (thd=0x555a2488ee68, table_list=0x555a248a1078, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at ../sql/sql_insert.cc:711
|
711 Name_resolution_context_state ctx_state;
|
(gdb) c
|
Continuing.
|
|
Thread 2 hit Breakpoint 3, ha_innobase::external_lock (this=0x555a24996ff0, thd=0x555a2488ee68, lock_type=1) at ../storage/innobase/handler/ha_innodb.cc:15483
|
15483 switch (sql_command) {
|
(gdb) bt
|
#0 ha_innobase::external_lock (this=0x555a24996ff0, thd=0x555a2488ee68, lock_type=1) at ../storage/innobase/handler/ha_innodb.cc:15483
|
#1 0x0000555a21641d0a in handler::ha_external_lock (this=0x555a24996ff0, thd=0x555a2488ee68, lock_type=1) at ../sql/handler.cc:6770
|
#2 0x0000555a217e6fdb in lock_external (thd=0x555a2488ee68, tables=0x555a248a2698, count=1) at ../sql/lock.cc:393
|
#3 0x0000555a217e6aee in mysql_lock_tables (thd=0x555a2488ee68, sql_lock=0x555a248a2678, flags=0) at ../sql/lock.cc:338
|
#4 0x0000555a217e5b1d in mysql_lock_tables (thd=0x555a2488ee68, tables=0x555a248a2670, count=1, flags=0) at ../sql/lock.cc:301
|
#5 0x0000555a2114a57c in lock_tables (thd=0x555a2488ee68, tables=0x555a248a1078, count=1, flags=0) at ../sql/sql_base.cc:5538
|
#6 0x0000555a2114bcb4 in open_and_lock_tables (thd=0x555a2488ee68, options=..., tables=0x555a248a1078, derived=true, flags=0, prelocking_strategy=0x7fb5002a2ae0) at ../sql/sql_base.cc:5250
|
#7 0x0000555a210edc70 in open_and_lock_tables (thd=0x555a2488ee68, tables=0x555a248a1078, derived=true, flags=0) at ../sql/sql_base.h:509
|
#8 0x0000555a211b51b8 in mysql_insert (thd=0x555a2488ee68, table_list=0x555a248a1078, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at ../sql/sql_insert.cc:756
|
#9 0x0000555a21221179 in mysql_execute_command (thd=0x555a2488ee68) at ../sql/sql_parse.cc:4556
|
#10 0x0000555a21214821 in mysql_parse (thd=0x555a2488ee68, rawbuf=0x555a248a0fa0 "INSERT INTO t VALUES (0)", length=24, parser_state=0x7fb5002a52d8) at ../sql/sql_parse.cc:8016
|
#11 0x0000555a212110b2 in dispatch_command (command=COM_QUERY, thd=0x555a2488ee68, packet=0x555a24897ad9 "INSERT INTO t VALUES (0)", packet_length=24, blocking=true) at ../sql/sql_parse.cc:1897
|
#12 0x0000555a21215ad5 in do_command (thd=0x555a2488ee68, blocking=true) at ../sql/sql_parse.cc:1406
|
#13 0x0000555a2141df24 in do_handle_one_connection (connect=0x555a2484f5f8, put_in_cache=true) at ../sql/sql_connect.cc:1410
|
#14 0x0000555a2141dc5a in handle_one_connection (arg=0x555a2483d998) at ../sql/sql_connect.cc:1312
|
#15 0x0000555a21a51349 in pfs_spawn_thread (arg=0x555a24797f98) at ../storage/perfschema/pfs.cc:2201
|
#16 0x00007fb50ea03299 in start_thread () from /usr/lib/libpthread.so.0
|
#17 0x00007fb50e72c053 in clone () from /usr/lib/libc.so.6
|
(gdb) p trx->bulk_insert
|
$1 = false
|
(gdb) c
|
Continuing.
|
|
Thread 2 hit Breakpoint 3, ha_innobase::external_lock (this=0x555a24996ff0, thd=0x555a2488ee68, lock_type=2) at ../storage/innobase/handler/ha_innodb.cc:15483
|
15483 switch (sql_command) {
|
(gdb) bt
|
#0 ha_innobase::external_lock (this=0x555a24996ff0, thd=0x555a2488ee68, lock_type=2) at ../storage/innobase/handler/ha_innodb.cc:15483
|
#1 0x0000555a21641d0a in handler::ha_external_lock (this=0x555a24996ff0, thd=0x555a2488ee68, lock_type=2) at ../sql/handler.cc:6770
|
#2 0x0000555a2135d712 in handler::ha_external_unlock (this=0x555a24996ff0, thd=0x555a2488ee68) at ../sql/handler.h:3532
|
#3 0x0000555a217e71a1 in unlock_external (thd=0x555a2488ee68, table=0x555a248a2698, count=1) at ../sql/lock.cc:727
|
#4 0x0000555a217e7346 in mysql_unlock_tables (thd=0x555a2488ee68, sql_lock=0x555a248a2678, free_lock=false) at ../sql/lock.cc:432
|
#5 0x0000555a217e75ee in mysql_unlock_tables (thd=0x555a2488ee68, sql_lock=0x555a248a2678) at ../sql/lock.cc:415
|
#6 0x0000555a2114028f in close_thread_tables (thd=0x555a2488ee68) at ../sql/sql_base.cc:913
|
#7 0x0000555a21228fee in mysql_execute_command (thd=0x555a2488ee68) at ../sql/sql_parse.cc:6049
|
#8 0x0000555a21214821 in mysql_parse (thd=0x555a2488ee68, rawbuf=0x555a248a0fa0 "INSERT INTO t VALUES (0)", length=24, parser_state=0x7fb5002a52d8) at ../sql/sql_parse.cc:8016
|
#9 0x0000555a212110b2 in dispatch_command (command=COM_QUERY, thd=0x555a2488ee68, packet=0x555a24897ad9 "INSERT INTO t VALUES (0)", packet_length=24, blocking=true) at ../sql/sql_parse.cc:1897
|
#10 0x0000555a21215ad5 in do_command (thd=0x555a2488ee68, blocking=true) at ../sql/sql_parse.cc:1406
|
#11 0x0000555a2141df24 in do_handle_one_connection (connect=0x555a2484f5f8, put_in_cache=true) at ../sql/sql_connect.cc:1410
|
#12 0x0000555a2141dc5a in handle_one_connection (arg=0x555a2483d998) at ../sql/sql_connect.cc:1312
|
#13 0x0000555a21a51349 in pfs_spawn_thread (arg=0x555a24797f98) at ../storage/perfschema/pfs.cc:2201
|
#14 0x00007fb50ea03299 in start_thread () from /usr/lib/libpthread.so.0
|
#15 0x00007fb50e72c053 in clone () from /usr/lib/libc.so.6
|
(gdb) p trx->bulk_insert
|
$2 = false
|
(gdb) c
|
Continuing.
|
|
Thread 2 hit Breakpoint 2, mysql_insert (thd=0x555a2488ee68, table_list=0x555a248a1088, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at ../sql/sql_insert.cc:711
|
711 Name_resolution_context_state ctx_state;
|
(gdb) c
|
Continuing.
|
|
Thread 2 hit Breakpoint 3, ha_innobase::external_lock (this=0x555a24996ff0, thd=0x555a2488ee68, lock_type=1) at ../storage/innobase/handler/ha_innodb.cc:15483
|
15483 switch (sql_command) {
|
(gdb) bt
|
#0 ha_innobase::external_lock (this=0x555a24996ff0, thd=0x555a2488ee68, lock_type=1) at ../storage/innobase/handler/ha_innodb.cc:15483
|
#1 0x0000555a21641d0a in handler::ha_external_lock (this=0x555a24996ff0, thd=0x555a2488ee68, lock_type=1) at ../sql/handler.cc:6770
|
#2 0x0000555a217e6fdb in lock_external (thd=0x555a2488ee68, tables=0x555a248a2818, count=1) at ../sql/lock.cc:393
|
#3 0x0000555a217e6aee in mysql_lock_tables (thd=0x555a2488ee68, sql_lock=0x555a248a27f8, flags=0) at ../sql/lock.cc:338
|
#4 0x0000555a217e5b1d in mysql_lock_tables (thd=0x555a2488ee68, tables=0x555a248a27f0, count=1, flags=0) at ../sql/lock.cc:301
|
#5 0x0000555a2114a57c in lock_tables (thd=0x555a2488ee68, tables=0x555a248a1088, count=1, flags=0) at ../sql/sql_base.cc:5538
|
#6 0x0000555a2114bcb4 in open_and_lock_tables (thd=0x555a2488ee68, options=..., tables=0x555a248a1088, derived=true, flags=0, prelocking_strategy=0x7fb5002a2ae0) at ../sql/sql_base.cc:5250
|
#7 0x0000555a210edc70 in open_and_lock_tables (thd=0x555a2488ee68, tables=0x555a248a1088, derived=true, flags=0) at ../sql/sql_base.h:509
|
#8 0x0000555a211b51b8 in mysql_insert (thd=0x555a2488ee68, table_list=0x555a248a1088, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at ../sql/sql_insert.cc:756
|
#9 0x0000555a21221179 in mysql_execute_command (thd=0x555a2488ee68) at ../sql/sql_parse.cc:4556
|
#10 0x0000555a21214821 in mysql_parse (thd=0x555a2488ee68, rawbuf=0x555a248a0fa0 "INSERT INTO t VALUES (1),(0),(1)", length=32, parser_state=0x7fb5002a52d8) at ../sql/sql_parse.cc:8016
|
#11 0x0000555a212110b2 in dispatch_command (command=COM_QUERY, thd=0x555a2488ee68, packet=0x555a24897ad9 "INSERT INTO t VALUES (1),(0),(1)", packet_length=32, blocking=true) at ../sql/sql_parse.cc:1897
|
#12 0x0000555a21215ad5 in do_command (thd=0x555a2488ee68, blocking=true) at ../sql/sql_parse.cc:1406
|
#13 0x0000555a2141df24 in do_handle_one_connection (connect=0x555a2484f5f8, put_in_cache=true) at ../sql/sql_connect.cc:1410
|
#14 0x0000555a2141dc5a in handle_one_connection (arg=0x555a2483d998) at ../sql/sql_connect.cc:1312
|
#15 0x0000555a21a51349 in pfs_spawn_thread (arg=0x555a24797f98) at ../storage/perfschema/pfs.cc:2201
|
#16 0x00007fb50ea03299 in start_thread () from /usr/lib/libpthread.so.0
|
#17 0x00007fb50e72c053 in clone () from /usr/lib/libc.so.6
|
(gdb) p trx->bulk_insert
|
$3 = false
|
(gdb) c
|
Continuing.
|
|
Thread 2 hit Breakpoint 3, ha_innobase::external_lock (this=0x555a24996ff0, thd=0x555a2488ee68, lock_type=2) at ../storage/innobase/handler/ha_innodb.cc:15483
|
15483 switch (sql_command) {
|
(gdb) p trx->bulk_insert
|
$4 = false
|
(gdb) bt
|
#0 ha_innobase::external_lock (this=0x555a24996ff0, thd=0x555a2488ee68, lock_type=2) at ../storage/innobase/handler/ha_innodb.cc:15483
|
#1 0x0000555a21641d0a in handler::ha_external_lock (this=0x555a24996ff0, thd=0x555a2488ee68, lock_type=2) at ../sql/handler.cc:6770
|
#2 0x0000555a2135d712 in handler::ha_external_unlock (this=0x555a24996ff0, thd=0x555a2488ee68) at ../sql/handler.h:3532
|
#3 0x0000555a217e71a1 in unlock_external (thd=0x555a2488ee68, table=0x555a248a2818, count=1) at ../sql/lock.cc:727
|
#4 0x0000555a217e7346 in mysql_unlock_tables (thd=0x555a2488ee68, sql_lock=0x555a248a27f8, free_lock=false) at ../sql/lock.cc:432
|
#5 0x0000555a217e75ee in mysql_unlock_tables (thd=0x555a2488ee68, sql_lock=0x555a248a27f8) at ../sql/lock.cc:415
|
#6 0x0000555a2114028f in close_thread_tables (thd=0x555a2488ee68) at ../sql/sql_base.cc:913
|
#7 0x0000555a21228fee in mysql_execute_command (thd=0x555a2488ee68) at ../sql/sql_parse.cc:6049
|
#8 0x0000555a21214821 in mysql_parse (thd=0x555a2488ee68, rawbuf=0x555a248a0fa0 "INSERT INTO t VALUES (1),(0),(1)", length=32, parser_state=0x7fb5002a52d8) at ../sql/sql_parse.cc:8016
|
#9 0x0000555a212110b2 in dispatch_command (command=COM_QUERY, thd=0x555a2488ee68, packet=0x555a24897ad9 "INSERT INTO t VALUES (1),(0),(1)", packet_length=32, blocking=true) at ../sql/sql_parse.cc:1897
|
#10 0x0000555a21215ad5 in do_command (thd=0x555a2488ee68, blocking=true) at ../sql/sql_parse.cc:1406
|
#11 0x0000555a2141df24 in do_handle_one_connection (connect=0x555a2484f5f8, put_in_cache=true) at ../sql/sql_connect.cc:1410
|
#12 0x0000555a2141dc5a in handle_one_connection (arg=0x555a2483d998) at ../sql/sql_connect.cc:1312
|
#13 0x0000555a21a51349 in pfs_spawn_thread (arg=0x555a24797f98) at ../storage/perfschema/pfs.cc:2201
|
#14 0x00007fb50ea03299 in start_thread () from /usr/lib/libpthread.so.0
|
#15 0x00007fb50e72c053 in clone () from /usr/lib/libc.so.6
|
The PARTITION case outputs look the same. The difference is that ha_innobase:::external_lock is called 4 times for the statement, one lock/unlock pair for each partition. The second statement aborts:
Thread 2 hit Breakpoint 6, mysql_create_table (thd=0x55892a79ae68, create_table=0x55892a7ad0e8, create_info=0x7f00cc059e50, alter_info=0x7f00cc059d68) at ../sql/sql_table.cc:4602
|
4602 TABLE_LIST *pos_in_locked_tables= 0;
|
(gdb) p thd->query()
|
$1 = 0x55892a7acfa0 "CREATE TABLE t (i INT) ENGINE=InnoDB PARTITION BY HASH (i) PARTITIONS 2"
|
(gdb) c
|
Continuing.
|
|
Thread 2 hit Breakpoint 2, mysql_insert (thd=0x55892a79ae68, table_list=0x55892a7ad078, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at ../sql/sql_insert.cc:711
|
711 Name_resolution_context_state ctx_state;
|
(gdb) p thd->query()
|
$2 = 0x55892a7acfa0 "INSERT INTO t VALUES (0)"
|
(gdb) c
|
Continuing.
|
|
Thread 2 hit Breakpoint 3, ha_innobase::external_lock (this=0x55892a9acd00, thd=0x55892a79ae68, lock_type=1) at ../storage/innobase/handler/ha_innodb.cc:15483
|
15483 switch (sql_command) {
|
(gdb) bt
|
#0 ha_innobase::external_lock (this=0x55892a9acd00, thd=0x55892a79ae68, lock_type=1) at ../storage/innobase/handler/ha_innodb.cc:15483
|
#1 0x00005589270e0d72 in handler::ha_external_lock (this=0x55892a9acd00, thd=0x55892a79ae68, lock_type=1) at ../sql/handler.cc:6770
|
#2 0x00005589274cf253 in ha_partition::external_lock (this=0x55892a9ac490, thd=0x55892a79ae68, lock_type=1) at ../sql/ha_partition.cc:4072
|
#3 0x00005589270e0d0a in handler::ha_external_lock (this=0x55892a9ac490, thd=0x55892a79ae68, lock_type=1) at ../sql/handler.cc:6770
|
#4 0x0000558927285fdb in lock_external (thd=0x55892a79ae68, tables=0x55892a7ae698, count=1) at ../sql/lock.cc:393
|
#5 0x0000558927285aee in mysql_lock_tables (thd=0x55892a79ae68, sql_lock=0x55892a7ae678, flags=0) at ../sql/lock.cc:338
|
#6 0x0000558927284b1d in mysql_lock_tables (thd=0x55892a79ae68, tables=0x55892a7ae670, count=1, flags=0) at ../sql/lock.cc:301
|
#7 0x0000558926be957c in lock_tables (thd=0x55892a79ae68, tables=0x55892a7ad078, count=1, flags=0) at ../sql/sql_base.cc:5538
|
#8 0x0000558926beacb4 in open_and_lock_tables (thd=0x55892a79ae68, options=..., tables=0x55892a7ad078, derived=true, flags=0, prelocking_strategy=0x7f00cc059ae0) at ../sql/sql_base.cc:5250
|
#9 0x0000558926b8cc70 in open_and_lock_tables (thd=0x55892a79ae68, tables=0x55892a7ad078, derived=true, flags=0) at ../sql/sql_base.h:509
|
#10 0x0000558926c541b8 in mysql_insert (thd=0x55892a79ae68, table_list=0x55892a7ad078, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at ../sql/sql_insert.cc:756
|
#11 0x0000558926cc0179 in mysql_execute_command (thd=0x55892a79ae68) at ../sql/sql_parse.cc:4556
|
#12 0x0000558926cb3821 in mysql_parse (thd=0x55892a79ae68, rawbuf=0x55892a7acfa0 "INSERT INTO t VALUES (0)", length=24, parser_state=0x7f00cc05c2d8) at ../sql/sql_parse.cc:8016
|
#13 0x0000558926cb00b2 in dispatch_command (command=COM_QUERY, thd=0x55892a79ae68, packet=0x55892a7a3ad9 "INSERT INTO t VALUES (0)", packet_length=24, blocking=true) at ../sql/sql_parse.cc:1897
|
#14 0x0000558926cb4ad5 in do_command (thd=0x55892a79ae68, blocking=true) at ../sql/sql_parse.cc:1406
|
#15 0x0000558926ebcf24 in do_handle_one_connection (connect=0x55892a75b5f8, put_in_cache=true) at ../sql/sql_connect.cc:1410
|
#16 0x0000558926ebcc5a in handle_one_connection (arg=0x55892a749998) at ../sql/sql_connect.cc:1312
|
#17 0x00005589274f0349 in pfs_spawn_thread (arg=0x55892a6a3f98) at ../storage/perfschema/pfs.cc:2201
|
#18 0x00007f00d479a299 in start_thread () from /usr/lib/libpthread.so.0
|
#19 0x00007f00d44c3053 in clone () from /usr/lib/libc.so.6
|
|
|
(gdb) p trx->bulk_insert
|
$3 = false
|
(gdb) c
|
Continuing.
|
|
Thread 2 hit Breakpoint 3, ha_innobase::external_lock (this=0x55892a9ad4e0, thd=0x55892a79ae68, lock_type=1) at ../storage/innobase/handler/ha_innodb.cc:15483
|
15483 switch (sql_command) {
|
(gdb) bt
|
#0 ha_innobase::external_lock (this=0x55892a9ad4e0, thd=0x55892a79ae68, lock_type=1) at ../storage/innobase/handler/ha_innodb.cc:15483
|
#1 0x00005589270e0d72 in handler::ha_external_lock (this=0x55892a9ad4e0, thd=0x55892a79ae68, lock_type=1) at ../sql/handler.cc:6770
|
#2 0x00005589274cf253 in ha_partition::external_lock (this=0x55892a9ac490, thd=0x55892a79ae68, lock_type=1) at ../sql/ha_partition.cc:4072
|
#3 0x00005589270e0d0a in handler::ha_external_lock (this=0x55892a9ac490, thd=0x55892a79ae68, lock_type=1) at ../sql/handler.cc:6770
|
#4 0x0000558927285fdb in lock_external (thd=0x55892a79ae68, tables=0x55892a7ae698, count=1) at ../sql/lock.cc:393
|
#5 0x0000558927285aee in mysql_lock_tables (thd=0x55892a79ae68, sql_lock=0x55892a7ae678, flags=0) at ../sql/lock.cc:338
|
#6 0x0000558927284b1d in mysql_lock_tables (thd=0x55892a79ae68, tables=0x55892a7ae670, count=1, flags=0) at ../sql/lock.cc:301
|
#7 0x0000558926be957c in lock_tables (thd=0x55892a79ae68, tables=0x55892a7ad078, count=1, flags=0) at ../sql/sql_base.cc:5538
|
#8 0x0000558926beacb4 in open_and_lock_tables (thd=0x55892a79ae68, options=..., tables=0x55892a7ad078, derived=true, flags=0, prelocking_strategy=0x7f00cc059ae0) at ../sql/sql_base.cc:5250
|
#9 0x0000558926b8cc70 in open_and_lock_tables (thd=0x55892a79ae68, tables=0x55892a7ad078, derived=true, flags=0) at ../sql/sql_base.h:509
|
#10 0x0000558926c541b8 in mysql_insert (thd=0x55892a79ae68, table_list=0x55892a7ad078, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at ../sql/sql_insert.cc:756
|
#11 0x0000558926cc0179 in mysql_execute_command (thd=0x55892a79ae68) at ../sql/sql_parse.cc:4556
|
#12 0x0000558926cb3821 in mysql_parse (thd=0x55892a79ae68, rawbuf=0x55892a7acfa0 "INSERT INTO t VALUES (0)", length=24, parser_state=0x7f00cc05c2d8) at ../sql/sql_parse.cc:8016
|
#13 0x0000558926cb00b2 in dispatch_command (command=COM_QUERY, thd=0x55892a79ae68, packet=0x55892a7a3ad9 "INSERT INTO t VALUES (0)", packet_length=24, blocking=true) at ../sql/sql_parse.cc:1897
|
#14 0x0000558926cb4ad5 in do_command (thd=0x55892a79ae68, blocking=true) at ../sql/sql_parse.cc:1406
|
#15 0x0000558926ebcf24 in do_handle_one_connection (connect=0x55892a75b5f8, put_in_cache=true) at ../sql/sql_connect.cc:1410
|
#16 0x0000558926ebcc5a in handle_one_connection (arg=0x55892a749998) at ../sql/sql_connect.cc:1312
|
#17 0x00005589274f0349 in pfs_spawn_thread (arg=0x55892a6a3f98) at ../storage/perfschema/pfs.cc:2201
|
#18 0x00007f00d479a299 in start_thread () from /usr/lib/libpthread.so.0
|
#19 0x00007f00d44c3053 in clone () from /usr/lib/libc.so.6
|
(gdb) p trx->bulk_insert
|
$4 = false
|
(gdb) c
|
Continuing.
|
|
Thread 2 hit Breakpoint 3, ha_innobase::external_lock (this=0x55892a9acd00, thd=0x55892a79ae68, lock_type=2) at ../storage/innobase/handler/ha_innodb.cc:15483
|
15483 switch (sql_command) {
|
(gdb) bt
|
#0 ha_innobase::external_lock (this=0x55892a9acd00, thd=0x55892a79ae68, lock_type=2) at ../storage/innobase/handler/ha_innodb.cc:15483
|
#1 0x00005589270e0d72 in handler::ha_external_lock (this=0x55892a9acd00, thd=0x55892a79ae68, lock_type=2) at ../sql/handler.cc:6770
|
#2 0x00005589274cf253 in ha_partition::external_lock (this=0x55892a9ac490, thd=0x55892a79ae68, lock_type=2) at ../sql/ha_partition.cc:4072
|
#3 0x00005589270e0d0a in handler::ha_external_lock (this=0x55892a9ac490, thd=0x55892a79ae68, lock_type=2) at ../sql/handler.cc:6770
|
#4 0x0000558926dfc712 in handler::ha_external_unlock (this=0x55892a9ac490, thd=0x55892a79ae68) at ../sql/handler.h:3532
|
#5 0x00005589272861a1 in unlock_external (thd=0x55892a79ae68, table=0x55892a7ae698, count=1) at ../sql/lock.cc:727
|
#6 0x0000558927286346 in mysql_unlock_tables (thd=0x55892a79ae68, sql_lock=0x55892a7ae678, free_lock=false) at ../sql/lock.cc:432
|
#7 0x00005589272865ee in mysql_unlock_tables (thd=0x55892a79ae68, sql_lock=0x55892a7ae678) at ../sql/lock.cc:415
|
#8 0x0000558926bdf28f in close_thread_tables (thd=0x55892a79ae68) at ../sql/sql_base.cc:913
|
#9 0x0000558926cc7fee in mysql_execute_command (thd=0x55892a79ae68) at ../sql/sql_parse.cc:6049
|
#10 0x0000558926cb3821 in mysql_parse (thd=0x55892a79ae68, rawbuf=0x55892a7acfa0 "INSERT INTO t VALUES (0)", length=24, parser_state=0x7f00cc05c2d8) at ../sql/sql_parse.cc:8016
|
#11 0x0000558926cb00b2 in dispatch_command (command=COM_QUERY, thd=0x55892a79ae68, packet=0x55892a7a3ad9 "INSERT INTO t VALUES (0)", packet_length=24, blocking=true) at ../sql/sql_parse.cc:1897
|
#12 0x0000558926cb4ad5 in do_command (thd=0x55892a79ae68, blocking=true) at ../sql/sql_parse.cc:1406
|
#13 0x0000558926ebcf24 in do_handle_one_connection (connect=0x55892a75b5f8, put_in_cache=true) at ../sql/sql_connect.cc:1410
|
#14 0x0000558926ebcc5a in handle_one_connection (arg=0x55892a749998) at ../sql/sql_connect.cc:1312
|
#15 0x00005589274f0349 in pfs_spawn_thread (arg=0x55892a6a3f98) at ../storage/perfschema/pfs.cc:2201
|
#16 0x00007f00d479a299 in start_thread () from /usr/lib/libpthread.so.0
|
#17 0x00007f00d44c3053 in clone () from /usr/lib/libc.so.6
|
(gdb) p trx->bulk_insert
|
$5 = false
|
(gdb) c
|
Continuing.
|
|
Thread 2 hit Breakpoint 3, ha_innobase::external_lock (this=0x55892a9ad4e0, thd=0x55892a79ae68, lock_type=2) at ../storage/innobase/handler/ha_innodb.cc:15483
|
15483 switch (sql_command) {
|
(gdb) bt
|
#0 ha_innobase::external_lock (this=0x55892a9ad4e0, thd=0x55892a79ae68, lock_type=2) at ../storage/innobase/handler/ha_innodb.cc:15483
|
#1 0x00005589270e0d72 in handler::ha_external_lock (this=0x55892a9ad4e0, thd=0x55892a79ae68, lock_type=2) at ../sql/handler.cc:6770
|
#2 0x00005589274cf253 in ha_partition::external_lock (this=0x55892a9ac490, thd=0x55892a79ae68, lock_type=2) at ../sql/ha_partition.cc:4072
|
#3 0x00005589270e0d0a in handler::ha_external_lock (this=0x55892a9ac490, thd=0x55892a79ae68, lock_type=2) at ../sql/handler.cc:6770
|
#4 0x0000558926dfc712 in handler::ha_external_unlock (this=0x55892a9ac490, thd=0x55892a79ae68) at ../sql/handler.h:3532
|
#5 0x00005589272861a1 in unlock_external (thd=0x55892a79ae68, table=0x55892a7ae698, count=1) at ../sql/lock.cc:727
|
#6 0x0000558927286346 in mysql_unlock_tables (thd=0x55892a79ae68, sql_lock=0x55892a7ae678, free_lock=false) at ../sql/lock.cc:432
|
#7 0x00005589272865ee in mysql_unlock_tables (thd=0x55892a79ae68, sql_lock=0x55892a7ae678) at ../sql/lock.cc:415
|
#8 0x0000558926bdf28f in close_thread_tables (thd=0x55892a79ae68) at ../sql/sql_base.cc:913
|
#9 0x0000558926cc7fee in mysql_execute_command (thd=0x55892a79ae68) at ../sql/sql_parse.cc:6049
|
#10 0x0000558926cb3821 in mysql_parse (thd=0x55892a79ae68, rawbuf=0x55892a7acfa0 "INSERT INTO t VALUES (0)", length=24, parser_state=0x7f00cc05c2d8) at ../sql/sql_parse.cc:8016
|
#11 0x0000558926cb00b2 in dispatch_command (command=COM_QUERY, thd=0x55892a79ae68, packet=0x55892a7a3ad9 "INSERT INTO t VALUES (0)", packet_length=24, blocking=true) at ../sql/sql_parse.cc:1897
|
#12 0x0000558926cb4ad5 in do_command (thd=0x55892a79ae68, blocking=true) at ../sql/sql_parse.cc:1406
|
#13 0x0000558926ebcf24 in do_handle_one_connection (connect=0x55892a75b5f8, put_in_cache=true) at ../sql/sql_connect.cc:1410
|
#14 0x0000558926ebcc5a in handle_one_connection (arg=0x55892a749998) at ../sql/sql_connect.cc:1312
|
#15 0x00005589274f0349 in pfs_spawn_thread (arg=0x55892a6a3f98) at ../storage/perfschema/pfs.cc:2201
|
#16 0x00007f00d479a299 in start_thread () from /usr/lib/libpthread.so.0
|
#17 0x00007f00d44c3053 in clone () from /usr/lib/libc.so.6
|
(gdb) p trx->bulk_insert
|
$6 = false
|
(gdb) c
|
Continuing.
|
|
Thread 2 hit Breakpoint 2, mysql_insert (thd=0x55892a79ae68, table_list=0x55892a7ad088, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at ../sql/sql_insert.cc:711
|
711 Name_resolution_context_state ctx_state;
|
(gdb) p thd->query()
|
$7 = 0x55892a7acfa0 "INSERT INTO t VALUES (1),(0),(1)"
|
(gdb) c
|
Continuing.
|
|
Thread 2 hit Breakpoint 3, ha_innobase::external_lock (this=0x55892a9acd00, thd=0x55892a79ae68, lock_type=1) at ../storage/innobase/handler/ha_innodb.cc:15483
|
15483 switch (sql_command) {
|
(gdb) p trx->bulk_insert
|
$8 = false
|
(gdb) bt
|
#0 ha_innobase::external_lock (this=0x55892a9acd00, thd=0x55892a79ae68, lock_type=1) at ../storage/innobase/handler/ha_innodb.cc:15483
|
#1 0x00005589270e0d72 in handler::ha_external_lock (this=0x55892a9acd00, thd=0x55892a79ae68, lock_type=1) at ../sql/handler.cc:6770
|
#2 0x00005589274cf253 in ha_partition::external_lock (this=0x55892a9ac490, thd=0x55892a79ae68, lock_type=1) at ../sql/ha_partition.cc:4072
|
#3 0x00005589270e0d0a in handler::ha_external_lock (this=0x55892a9ac490, thd=0x55892a79ae68, lock_type=1) at ../sql/handler.cc:6770
|
#4 0x0000558927285fdb in lock_external (thd=0x55892a79ae68, tables=0x55892a7ae818, count=1) at ../sql/lock.cc:393
|
#5 0x0000558927285aee in mysql_lock_tables (thd=0x55892a79ae68, sql_lock=0x55892a7ae7f8, flags=0) at ../sql/lock.cc:338
|
#6 0x0000558927284b1d in mysql_lock_tables (thd=0x55892a79ae68, tables=0x55892a7ae7f0, count=1, flags=0) at ../sql/lock.cc:301
|
#7 0x0000558926be957c in lock_tables (thd=0x55892a79ae68, tables=0x55892a7ad088, count=1, flags=0) at ../sql/sql_base.cc:5538
|
#8 0x0000558926beacb4 in open_and_lock_tables (thd=0x55892a79ae68, options=..., tables=0x55892a7ad088, derived=true, flags=0, prelocking_strategy=0x7f00cc059ae0) at ../sql/sql_base.cc:5250
|
#9 0x0000558926b8cc70 in open_and_lock_tables (thd=0x55892a79ae68, tables=0x55892a7ad088, derived=true, flags=0) at ../sql/sql_base.h:509
|
#10 0x0000558926c541b8 in mysql_insert (thd=0x55892a79ae68, table_list=0x55892a7ad088, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at ../sql/sql_insert.cc:756
|
#11 0x0000558926cc0179 in mysql_execute_command (thd=0x55892a79ae68) at ../sql/sql_parse.cc:4556
|
#12 0x0000558926cb3821 in mysql_parse (thd=0x55892a79ae68, rawbuf=0x55892a7acfa0 "INSERT INTO t VALUES (1),(0),(1)", length=32, parser_state=0x7f00cc05c2d8) at ../sql/sql_parse.cc:8016
|
#13 0x0000558926cb00b2 in dispatch_command (command=COM_QUERY, thd=0x55892a79ae68, packet=0x55892a7a3ad9 "INSERT INTO t VALUES (1),(0),(1)", packet_length=32, blocking=true) at ../sql/sql_parse.cc:1897
|
#14 0x0000558926cb4ad5 in do_command (thd=0x55892a79ae68, blocking=true) at ../sql/sql_parse.cc:1406
|
#15 0x0000558926ebcf24 in do_handle_one_connection (connect=0x55892a75b5f8, put_in_cache=true) at ../sql/sql_connect.cc:1410
|
#16 0x0000558926ebcc5a in handle_one_connection (arg=0x55892a749998) at ../sql/sql_connect.cc:1312
|
#17 0x00005589274f0349 in pfs_spawn_thread (arg=0x55892a6a3f98) at ../storage/perfschema/pfs.cc:2201
|
#18 0x00007f00d479a299 in start_thread () from /usr/lib/libpthread.so.0
|
#19 0x00007f00d44c3053 in clone () from /usr/lib/libc.so.6
|
(gdb) c
|
Continuing.
|
|
Thread 2 hit Breakpoint 3, ha_innobase::external_lock (this=0x55892a9ad4e0, thd=0x55892a79ae68, lock_type=1) at ../storage/innobase/handler/ha_innodb.cc:15483
|
15483 switch (sql_command) {
|
(gdb) bt
|
#0 ha_innobase::external_lock (this=0x55892a9ad4e0, thd=0x55892a79ae68, lock_type=1) at ../storage/innobase/handler/ha_innodb.cc:15483
|
#1 0x00005589270e0d72 in handler::ha_external_lock (this=0x55892a9ad4e0, thd=0x55892a79ae68, lock_type=1) at ../sql/handler.cc:6770
|
#2 0x00005589274cf253 in ha_partition::external_lock (this=0x55892a9ac490, thd=0x55892a79ae68, lock_type=1) at ../sql/ha_partition.cc:4072
|
#3 0x00005589270e0d0a in handler::ha_external_lock (this=0x55892a9ac490, thd=0x55892a79ae68, lock_type=1) at ../sql/handler.cc:6770
|
#4 0x0000558927285fdb in lock_external (thd=0x55892a79ae68, tables=0x55892a7ae818, count=1) at ../sql/lock.cc:393
|
#5 0x0000558927285aee in mysql_lock_tables (thd=0x55892a79ae68, sql_lock=0x55892a7ae7f8, flags=0) at ../sql/lock.cc:338
|
#6 0x0000558927284b1d in mysql_lock_tables (thd=0x55892a79ae68, tables=0x55892a7ae7f0, count=1, flags=0) at ../sql/lock.cc:301
|
#7 0x0000558926be957c in lock_tables (thd=0x55892a79ae68, tables=0x55892a7ad088, count=1, flags=0) at ../sql/sql_base.cc:5538
|
#8 0x0000558926beacb4 in open_and_lock_tables (thd=0x55892a79ae68, options=..., tables=0x55892a7ad088, derived=true, flags=0, prelocking_strategy=0x7f00cc059ae0) at ../sql/sql_base.cc:5250
|
#9 0x0000558926b8cc70 in open_and_lock_tables (thd=0x55892a79ae68, tables=0x55892a7ad088, derived=true, flags=0) at ../sql/sql_base.h:509
|
#10 0x0000558926c541b8 in mysql_insert (thd=0x55892a79ae68, table_list=0x55892a7ad088, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at ../sql/sql_insert.cc:756
|
#11 0x0000558926cc0179 in mysql_execute_command (thd=0x55892a79ae68) at ../sql/sql_parse.cc:4556
|
#12 0x0000558926cb3821 in mysql_parse (thd=0x55892a79ae68, rawbuf=0x55892a7acfa0 "INSERT INTO t VALUES (1),(0),(1)", length=32, parser_state=0x7f00cc05c2d8) at ../sql/sql_parse.cc:8016
|
#13 0x0000558926cb00b2 in dispatch_command (command=COM_QUERY, thd=0x55892a79ae68, packet=0x55892a7a3ad9 "INSERT INTO t VALUES (1),(0),(1)", packet_length=32, blocking=true) at ../sql/sql_parse.cc:1897
|
#14 0x0000558926cb4ad5 in do_command (thd=0x55892a79ae68, blocking=true) at ../sql/sql_parse.cc:1406
|
#15 0x0000558926ebcf24 in do_handle_one_connection (connect=0x55892a75b5f8, put_in_cache=true) at ../sql/sql_connect.cc:1410
|
#16 0x0000558926ebcc5a in handle_one_connection (arg=0x55892a749998) at ../sql/sql_connect.cc:1312
|
#17 0x00005589274f0349 in pfs_spawn_thread (arg=0x55892a6a3f98) at ../storage/perfschema/pfs.cc:2201
|
#18 0x00007f00d479a299 in start_thread () from /usr/lib/libpthread.so.0
|
#19 0x00007f00d44c3053 in clone () from /usr/lib/libc.so.6
|
(gdb) p trx->bulk_insert
|
$9 = false
|
(gdb) c
|
Continuing.
|
|
Thread 2 received signal SIGABRT, Aborted.
|
0x00007f00d4400ef5 in raise () from /usr/lib/libc.so.6
|
|