insert写redo调用关系

/*insert 写redo之前*/
#0  mtr_t::Command::prepare_write (this=0x7ffe378b3510) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:792
#1  0x000000000196114e in mtr_t::Command::execute (this=0x7ffe378b3510) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:865
#2  0x000000000195fd1e in mtr_t::commit (this=0x7ffe378b3580) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:496
#3  0x0000000001ad8557 in trx_undo_assign_undo (trx=0x7fffd7bfe478, undo_ptr=0x7fffd7bfe7c0, type=1) at /data/mysql-5.7.32/storage/innobase/trx/trx0undo.cc:1838
#4  0x0000000001ab5862 in trx_undo_report_row_operation (flags=0, op_type=1, thr=0x7ffdfc01b400, index=0x7ffdfc023bf0, clust_entry=0x7ffdfc023060, update=0x0, cmpl_info=0, rec=0x0, offsets=0x0,
roll_ptr=0x7ffe378b4130) at /data/mysql-5.7.32/storage/innobase/trx/trx0rec.cc:1940
#5  0x0000000001b0b8db in btr_cur_ins_lock_and_undo (flags=0, cursor=0x7ffe378b45a0, entry=0x7ffdfc023060, thr=0x7ffdfc01b400, mtr=0x7ffe378b49d0, inherit=0x7ffe378b41b0) at /data/mysql-5.7.32/s
torage/innobase/btr/btr0cur.cc:2983
#6  0x0000000001b0c11f in btr_cur_optimistic_insert (flags=0, cursor=0x7ffe378b45a0, offsets=0x7ffe378b4ef0, heap=0x7ffe378b4ef8, entry=0x7ffdfc023060, rec=0x7ffe378b4ee8, big_rec=0x7ffe378b4f00
, n_ext=0, thr=0x7ffdfc01b400, mtr=0x7ffe378b49d0) at /data/mysql-5.7.32/storage/innobase/btr/btr0cur.cc:3209
#7  0x00000000019daa62 in row_ins_clust_index_entry_low (flags=0, mode=2, index=0x7ffdfc023bf0, n_uniq=1, entry=0x7ffdfc023060, n_ext=0, thr=0x7ffdfc01b400, dup_chk_only=false) at /data/mysql-5.
7.32/storage/innobase/row/row0ins.cc:2615
#8  0x00000000019dc963 in row_ins_clust_index_entry (index=0x7ffdfc023bf0, entry=0x7ffdfc023060, thr=0x7ffdfc01b400, n_ext=0, dup_chk_only=false) at /data/mysql-5.7.32/storage/innobase/row/row0i
ns.cc:3301
#9  0x00000000019dce62 in row_ins_index_entry (index=0x7ffdfc023bf0, entry=0x7ffdfc023060, thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3437
#10 0x00000000019dd3a2 in row_ins_index_entry_step (node=0x7ffdfc01b160, thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3587
#11 0x00000000019dd702 in row_ins (node=0x7ffdfc01b160, thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3725
#12 0x00000000019ddb66 in row_ins_step (thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3861
#13 0x00000000019fbaf9 in row_insert_for_mysql_using_ins_graph (mysql_rec=0x7ffdfc012038 "\376c", prebuilt=0x7ffdfc01ab90) at /data/mysql-5.7.32/storage/innobase/row/row0mysql.cc:1746
#14 0x00000000019fc067 in row_insert_for_mysql (mysql_rec=0x7ffdfc012038 "\376c", prebuilt=0x7ffdfc01ab90) at /data/mysql-5.7.32/storage/innobase/row/row0mysql.cc:1867
#15 0x00000000018a6238 in ha_innobase::write_row (this=0x7ffdfc011d40, record=0x7ffdfc012038 "\376c") at /data/mysql-5.7.32/storage/innobase/handler/ha_innodb.cc:7627
#16 0x0000000000f18772 in handler::ha_write_row (this=0x7ffdfc011d40, buf=0x7ffdfc012038 "\376c") at /data/mysql-5.7.32/sql/handler.cc:8107
#17 0x000000000173e598 in write_record (thd=0x7ffdfc000b70, table=0x7ffdfc011380, info=0x7ffe378b6070, update=0x7ffe378b60f0) at /data/mysql-5.7.32/sql/sql_insert.cc:1895
#18 0x000000000173b71e in Sql_cmd_insert::mysql_insert (this=0x7ffdfc006a28, thd=0x7ffdfc000b70, table_list=0x7ffdfc006498) at /data/mysql-5.7.32/sql/sql_insert.cc:776
#19 0x0000000001742094 in Sql_cmd_insert::execute (this=0x7ffdfc006a28, thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/sql_insert.cc:3142
#20 0x0000000001518eae in mysql_execute_command (thd=0x7ffdfc000b70, first_level=true) at /data/mysql-5.7.32/sql/sql_parse.cc:3606
#21 0x000000000151e6b1 in mysql_parse (thd=0x7ffdfc000b70, parser_state=0x7ffe378b7550) at /data/mysql-5.7.32/sql/sql_parse.cc:5584
#22 0x0000000001513f3b in dispatch_command (thd=0x7ffdfc000b70, com_data=0x7ffe378b7cb0, command=COM_QUERY) at /data/mysql-5.7.32/sql/sql_parse.cc:1491
#23 0x0000000001512da9 in do_command (thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/sql_parse.cc:1032
#24 0x00000000016451f8 in handle_connection (arg=0x160325b0) at /data/mysql-5.7.32/sql/conn_handler/connection_handler_per_thread.cc:313
#25 0x0000000001cd42de in pfs_spawn_thread (arg=0x1600e0a0) at /data/mysql-5.7.32/storage/perfschema/pfs.cc:2197
#26 0x00007ffff7bc6dd5 in start_thread () from /lib64/libpthread.so.0
#27 0x00007ffff61b7ead in clone () from /lib64/libc.so.6

/*先写undo的redo日志*/
#0  log_reserve_and_write_fast (str=0x7ffe378b3820, len=34, start_lsn=0x7ffe378b3528) at /data/mysql-5.7.32/storage/innobase/include/log0log.ic:405
#1  0x0000000001960ffd in mtr_t::Command::finish_write (this=0x7ffe378b3510, len=34) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:819
#2  0x000000000196116c in mtr_t::Command::execute (this=0x7ffe378b3510) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:866
#3  0x000000000195fd1e in mtr_t::commit (this=0x7ffe378b3580) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:496
#4  0x0000000001ad8557 in trx_undo_assign_undo (trx=0x7fffd7bfe478, undo_ptr=0x7fffd7bfe7c0, type=1) at /data/mysql-5.7.32/storage/innobase/trx/trx0undo.cc:1838
#5  0x0000000001ab5862 in trx_undo_report_row_operation (flags=0, op_type=1, thr=0x7ffdfc01b400, index=0x7ffdfc023bf0, clust_entry=0x7ffdfc023060, update=0x0, cmpl_info=0, rec=0x0, offsets=0x0,
roll_ptr=0x7ffe378b4130) at /data/mysql-5.7.32/storage/innobase/trx/trx0rec.cc:1940
#6  0x0000000001b0b8db in btr_cur_ins_lock_and_undo (flags=0, cursor=0x7ffe378b45a0, entry=0x7ffdfc023060, thr=0x7ffdfc01b400, mtr=0x7ffe378b49d0, inherit=0x7ffe378b41b0) at /data/mysql-5.7.32/s
torage/innobase/btr/btr0cur.cc:2983
#7  0x0000000001b0c11f in btr_cur_optimistic_insert (flags=0, cursor=0x7ffe378b45a0, offsets=0x7ffe378b4ef0, heap=0x7ffe378b4ef8, entry=0x7ffdfc023060, rec=0x7ffe378b4ee8, big_rec=0x7ffe378b4f00
, n_ext=0, thr=0x7ffdfc01b400, mtr=0x7ffe378b49d0) at /data/mysql-5.7.32/storage/innobase/btr/btr0cur.cc:3209
#8  0x00000000019daa62 in row_ins_clust_index_entry_low (flags=0, mode=2, index=0x7ffdfc023bf0, n_uniq=1, entry=0x7ffdfc023060, n_ext=0, thr=0x7ffdfc01b400, dup_chk_only=false) at /data/mysql-5.
7.32/storage/innobase/row/row0ins.cc:2615
#9  0x00000000019dc963 in row_ins_clust_index_entry (index=0x7ffdfc023bf0, entry=0x7ffdfc023060, thr=0x7ffdfc01b400, n_ext=0, dup_chk_only=false) at /data/mysql-5.7.32/storage/innobase/row/row0i
ns.cc:3301
#10 0x00000000019dce62 in row_ins_index_entry (index=0x7ffdfc023bf0, entry=0x7ffdfc023060, thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3437
#11 0x00000000019dd3a2 in row_ins_index_entry_step (node=0x7ffdfc01b160, thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3587
#12 0x00000000019dd702 in row_ins (node=0x7ffdfc01b160, thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3725
#13 0x00000000019ddb66 in row_ins_step (thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3861
#14 0x00000000019fbaf9 in row_insert_for_mysql_using_ins_graph (mysql_rec=0x7ffdfc012038 "\376e", prebuilt=0x7ffdfc01ab90) at /data/mysql-5.7.32/storage/innobase/row/row0mysql.cc:1746
#15 0x00000000019fc067 in row_insert_for_mysql (mysql_rec=0x7ffdfc012038 "\376e", prebuilt=0x7ffdfc01ab90) at /data/mysql-5.7.32/storage/innobase/row/row0mysql.cc:1867
#16 0x00000000018a6238 in ha_innobase::write_row (this=0x7ffdfc011d40, record=0x7ffdfc012038 "\376e") at /data/mysql-5.7.32/storage/innobase/handler/ha_innodb.cc:7627
#17 0x0000000000f18772 in handler::ha_write_row (this=0x7ffdfc011d40, buf=0x7ffdfc012038 "\376e") at /data/mysql-5.7.32/sql/handler.cc:8107
#18 0x000000000173e598 in write_record (thd=0x7ffdfc000b70, table=0x7ffdfc011380, info=0x7ffe378b6070, update=0x7ffe378b60f0) at /data/mysql-5.7.32/sql/sql_insert.cc:1895
#19 0x000000000173b71e in Sql_cmd_insert::mysql_insert (this=0x7ffdfc006a28, thd=0x7ffdfc000b70, table_list=0x7ffdfc006498) at /data/mysql-5.7.32/sql/sql_insert.cc:776
#20 0x0000000001742094 in Sql_cmd_insert::execute (this=0x7ffdfc006a28, thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/sql_insert.cc:3142
#21 0x0000000001518eae in mysql_execute_command (thd=0x7ffdfc000b70, first_level=true) at /data/mysql-5.7.32/sql/sql_parse.cc:3606
#22 0x000000000151e6b1 in mysql_parse (thd=0x7ffdfc000b70, parser_state=0x7ffe378b7550) at /data/mysql-5.7.32/sql/sql_parse.cc:5584
#23 0x0000000001513f3b in dispatch_command (thd=0x7ffdfc000b70, com_data=0x7ffe378b7cb0, command=COM_QUERY) at /data/mysql-5.7.32/sql/sql_parse.cc:1491
#24 0x0000000001512da9 in do_command (thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/sql_parse.cc:1032
#25 0x00000000016451f8 in handle_connection (arg=0x160325b0) at /data/mysql-5.7.32/sql/conn_handler/connection_handler_per_thread.cc:313
#26 0x0000000001cd42de in pfs_spawn_thread (arg=0x1600e0a0) at /data/mysql-5.7.32/storage/perfschema/pfs.cc:2197
#27 0x00007ffff7bc6dd5 in start_thread () from /lib64/libpthread.so.0
#28 0x00007ffff61b7ead in clone () from /lib64/libc.so.6


#0  mtr_t::Command::execute (this=0x7ffe378b3a80) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:863
#1  0x000000000195fd1e in mtr_t::commit (this=0x7ffe378b3b20) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:496
#2  0x0000000001ab5c3e in trx_undo_report_row_operation (flags=0, op_type=1, thr=0x7ffdfc01b400, index=0x7ffdfc023bf0, clust_entry=0x7ffdfc023060, update=0x0, cmpl_info=0, rec=0x0, offsets=0x0,
roll_ptr=0x7ffe378b4130) at /data/mysql-5.7.32/storage/innobase/trx/trx0rec.cc:2037
#3  0x0000000001b0b8db in btr_cur_ins_lock_and_undo (flags=0, cursor=0x7ffe378b45a0, entry=0x7ffdfc023060, thr=0x7ffdfc01b400, mtr=0x7ffe378b49d0, inherit=0x7ffe378b41b0) at /data/mysql-5.7.32/s
torage/innobase/btr/btr0cur.cc:2983
#4  0x0000000001b0c11f in btr_cur_optimistic_insert (flags=0, cursor=0x7ffe378b45a0, offsets=0x7ffe378b4ef0, heap=0x7ffe378b4ef8, entry=0x7ffdfc023060, rec=0x7ffe378b4ee8, big_rec=0x7ffe378b4f00
, n_ext=0, thr=0x7ffdfc01b400, mtr=0x7ffe378b49d0) at /data/mysql-5.7.32/storage/innobase/btr/btr0cur.cc:3209
#5  0x00000000019daa62 in row_ins_clust_index_entry_low (flags=0, mode=2, index=0x7ffdfc023bf0, n_uniq=1, entry=0x7ffdfc023060, n_ext=0, thr=0x7ffdfc01b400, dup_chk_only=false) at /data/mysql-5.
7.32/storage/innobase/row/row0ins.cc:2615
#6  0x00000000019dc963 in row_ins_clust_index_entry (index=0x7ffdfc023bf0, entry=0x7ffdfc023060, thr=0x7ffdfc01b400, n_ext=0, dup_chk_only=false) at /data/mysql-5.7.32/storage/innobase/row/row0i
ns.cc:3301
#7  0x00000000019dce62 in row_ins_index_entry (index=0x7ffdfc023bf0, entry=0x7ffdfc023060, thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3437
#8  0x00000000019dd3a2 in row_ins_index_entry_step (node=0x7ffdfc01b160, thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3587
#9  0x00000000019dd702 in row_ins (node=0x7ffdfc01b160, thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3725
#10 0x00000000019ddb66 in row_ins_step (thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3861
#11 0x00000000019fbaf9 in row_insert_for_mysql_using_ins_graph (mysql_rec=0x7ffdfc012038 "\376e", prebuilt=0x7ffdfc01ab90) at /data/mysql-5.7.32/storage/innobase/row/row0mysql.cc:1746
#12 0x00000000019fc067 in row_insert_for_mysql (mysql_rec=0x7ffdfc012038 "\376e", prebuilt=0x7ffdfc01ab90) at /data/mysql-5.7.32/storage/innobase/row/row0mysql.cc:1867
#13 0x00000000018a6238 in ha_innobase::write_row (this=0x7ffdfc011d40, record=0x7ffdfc012038 "\376e") at /data/mysql-5.7.32/storage/innobase/handler/ha_innodb.cc:7627
#14 0x0000000000f18772 in handler::ha_write_row (this=0x7ffdfc011d40, buf=0x7ffdfc012038 "\376e") at /data/mysql-5.7.32/sql/handler.cc:8107
#15 0x000000000173e598 in write_record (thd=0x7ffdfc000b70, table=0x7ffdfc011380, info=0x7ffe378b6070, update=0x7ffe378b60f0) at /data/mysql-5.7.32/sql/sql_insert.cc:1895
#16 0x000000000173b71e in Sql_cmd_insert::mysql_insert (this=0x7ffdfc006a28, thd=0x7ffdfc000b70, table_list=0x7ffdfc006498) at /data/mysql-5.7.32/sql/sql_insert.cc:776
#17 0x0000000001742094 in Sql_cmd_insert::execute (this=0x7ffdfc006a28, thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/sql_insert.cc:3142
#18 0x0000000001518eae in mysql_execute_command (thd=0x7ffdfc000b70, first_level=true) at /data/mysql-5.7.32/sql/sql_parse.cc:3606
#19 0x000000000151e6b1 in mysql_parse (thd=0x7ffdfc000b70, parser_state=0x7ffe378b7550) at /data/mysql-5.7.32/sql/sql_parse.cc:5584
#20 0x0000000001513f3b in dispatch_command (thd=0x7ffdfc000b70, com_data=0x7ffe378b7cb0, command=COM_QUERY) at /data/mysql-5.7.32/sql/sql_parse.cc:1491
#21 0x0000000001512da9 in do_command (thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/sql_parse.cc:1032
#22 0x00000000016451f8 in handle_connection (arg=0x160325b0) at /data/mysql-5.7.32/sql/conn_handler/connection_handler_per_thread.cc:313
#23 0x0000000001cd42de in pfs_spawn_thread (arg=0x1600e0a0) at /data/mysql-5.7.32/storage/perfschema/pfs.cc:2197
#24 0x00007ffff7bc6dd5 in start_thread () from /lib64/libpthread.so.0
#25 0x00007ffff61b7ead in clone () from /lib64/libc.so.6
/*再写数据的redo日志*/
#0  log_reserve_and_write_fast (str=0x7ffe378b4c70, len=34, start_lsn=0x7ffe378b44e8) at /data/mysql-5.7.32/storage/innobase/include/log0log.ic:405
#1  0x0000000001960ffd in mtr_t::Command::finish_write (this=0x7ffe378b44d0, len=34) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:819
#2  0x000000000196116c in mtr_t::Command::execute (this=0x7ffe378b44d0) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:866
#3  0x000000000195fd1e in mtr_t::commit (this=0x7ffe378b49d0) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:496
#4  0x00000000019dac66 in row_ins_clust_index_entry_low (flags=0, mode=2, index=0x7ffdfc023bf0, n_uniq=1, entry=0x7ffdfc023060, n_ext=0, thr=0x7ffdfc01b400, dup_chk_only=false) at /data/mysql-5.
7.32/storage/innobase/row/row0ins.cc:2664
#5  0x00000000019dc963 in row_ins_clust_index_entry (index=0x7ffdfc023bf0, entry=0x7ffdfc023060, thr=0x7ffdfc01b400, n_ext=0, dup_chk_only=false) at /data/mysql-5.7.32/storage/innobase/row/row0i
ns.cc:3301
#6  0x00000000019dce62 in row_ins_index_entry (index=0x7ffdfc023bf0, entry=0x7ffdfc023060, thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3437
#7  0x00000000019dd3a2 in row_ins_index_entry_step (node=0x7ffdfc01b160, thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3587
#8  0x00000000019dd702 in row_ins (node=0x7ffdfc01b160, thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3725
#9  0x00000000019ddb66 in row_ins_step (thr=0x7ffdfc01b400) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3861
#10 0x00000000019fbaf9 in row_insert_for_mysql_using_ins_graph (mysql_rec=0x7ffdfc012038 "\376e", prebuilt=0x7ffdfc01ab90) at /data/mysql-5.7.32/storage/innobase/row/row0mysql.cc:1746
#11 0x00000000019fc067 in row_insert_for_mysql (mysql_rec=0x7ffdfc012038 "\376e", prebuilt=0x7ffdfc01ab90) at /data/mysql-5.7.32/storage/innobase/row/row0mysql.cc:1867
#12 0x00000000018a6238 in ha_innobase::write_row (this=0x7ffdfc011d40, record=0x7ffdfc012038 "\376e") at /data/mysql-5.7.32/storage/innobase/handler/ha_innodb.cc:7627
#13 0x0000000000f18772 in handler::ha_write_row (this=0x7ffdfc011d40, buf=0x7ffdfc012038 "\376e") at /data/mysql-5.7.32/sql/handler.cc:8107
#14 0x000000000173e598 in write_record (thd=0x7ffdfc000b70, table=0x7ffdfc011380, info=0x7ffe378b6070, update=0x7ffe378b60f0) at /data/mysql-5.7.32/sql/sql_insert.cc:1895
#15 0x000000000173b71e in Sql_cmd_insert::mysql_insert (this=0x7ffdfc006a28, thd=0x7ffdfc000b70, table_list=0x7ffdfc006498) at /data/mysql-5.7.32/sql/sql_insert.cc:776
#16 0x0000000001742094 in Sql_cmd_insert::execute (this=0x7ffdfc006a28, thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/sql_insert.cc:3142
#17 0x0000000001518eae in mysql_execute_command (thd=0x7ffdfc000b70, first_level=true) at /data/mysql-5.7.32/sql/sql_parse.cc:3606
#18 0x000000000151e6b1 in mysql_parse (thd=0x7ffdfc000b70, parser_state=0x7ffe378b7550) at /data/mysql-5.7.32/sql/sql_parse.cc:5584
#19 0x0000000001513f3b in dispatch_command (thd=0x7ffdfc000b70, com_data=0x7ffe378b7cb0, command=COM_QUERY) at /data/mysql-5.7.32/sql/sql_parse.cc:1491
#20 0x0000000001512da9 in do_command (thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/sql_parse.cc:1032
#21 0x00000000016451f8 in handle_connection (arg=0x160325b0) at /data/mysql-5.7.32/sql/conn_handler/connection_handler_per_thread.cc:313
#22 0x0000000001cd42de in pfs_spawn_thread (arg=0x1600e0a0) at /data/mysql-5.7.32/storage/perfschema/pfs.cc:2197
#23 0x00007ffff7bc6dd5 in start_thread () from /lib64/libpthread.so.0
#24 0x00007ffff61b7ead in clone () from /lib64/libc.so.6
/*commit 写redo日志*/
#0  log_reserve_and_write_fast (str=0x7ffe378b5c80, len=172, start_lsn=0x7ffe378b5988) at /data/mysql-5.7.32/storage/innobase/include/log0log.ic:405
#1  0x0000000001960ffd in mtr_t::Command::finish_write (this=0x7ffe378b5970, len=172) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:819
#2  0x000000000196116c in mtr_t::Command::execute (this=0x7ffe378b5970) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:866
#3  0x000000000195fd1e in mtr_t::commit (this=0x7ffe378b59e0) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:496
#4  0x0000000001aca270 in trx_prepare_low (trx=0x7fffd7bfe478, undo_ptr=0x7fffd7bfe7c0, noredo_logging=false) at /data/mysql-5.7.32/storage/innobase/trx/trx0trx.cc:2797
#5  0x0000000001aca398 in trx_prepare (trx=0x7fffd7bfe478) at /data/mysql-5.7.32/storage/innobase/trx/trx0trx.cc:2829
#6  0x0000000001aca5fd in trx_prepare_for_mysql (trx=0x7fffd7bfe478) at /data/mysql-5.7.32/storage/innobase/trx/trx0trx.cc:2914
#7  0x00000000018b782f in innobase_xa_prepare (hton=0x2d62fc0, thd=0x7ffdfc000b70, prepare_trx=true) at /data/mysql-5.7.32/storage/innobase/handler/ha_innodb.cc:17156
#8  0x0000000000f0b077 in ha_prepare_low (thd=0x7ffdfc000b70, all=true) at /data/mysql-5.7.32/sql/handler.cc:2360
#9  0x00000000017c3886 in MYSQL_BIN_LOG::prepare (this=0x2cc6180 <mysql_bin_log>, thd=0x7ffdfc000b70, all=true) at /data/mysql-5.7.32/sql/binlog.cc:8602
#10 0x0000000000f09e7a in ha_commit_trans (thd=0x7ffdfc000b70, all=true, ignore_global_read_lock=false) at /data/mysql-5.7.32/sql/handler.cc:1792
#11 0x000000000161721b in trans_commit (thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/transaction.cc:246
#12 0x000000000151b0de in mysql_execute_command (thd=0x7ffdfc000b70, first_level=true) at /data/mysql-5.7.32/sql/sql_parse.cc:4254
#13 0x000000000151e6b1 in mysql_parse (thd=0x7ffdfc000b70, parser_state=0x7ffe378b7550) at /data/mysql-5.7.32/sql/sql_parse.cc:5584
#14 0x0000000001513f3b in dispatch_command (thd=0x7ffdfc000b70, com_data=0x7ffe378b7cb0, command=COM_QUERY) at /data/mysql-5.7.32/sql/sql_parse.cc:1491
#15 0x0000000001512da9 in do_command (thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/sql_parse.cc:1032
#16 0x00000000016451f8 in handle_connection (arg=0x160325b0) at /data/mysql-5.7.32/sql/conn_handler/connection_handler_per_thread.cc:313
#17 0x0000000001cd42de in pfs_spawn_thread (arg=0x1600e0a0) at /data/mysql-5.7.32/storage/perfschema/pfs.cc:2197
#18 0x00007ffff7bc6dd5 in start_thread () from /lib64/libpthread.so.0
#19 0x00007ffff61b7ead in clone () from /lib64/libc.so.6
(gdb) 
#0  mtr_t::Command::finish_write (this=0x7ffe378b4920, len=15) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:827
#1  0x000000000196116c in mtr_t::Command::execute (this=0x7ffe378b4920) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:866
#2  0x000000000195fd1e in mtr_t::commit (this=0x7ffe378b49c0) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:496
#3  0x0000000001ac8d7c in trx_commit_low (trx=0x7fffd7bfe478, mtr=0x7ffe378b49c0) at /data/mysql-5.7.32/storage/innobase/trx/trx0trx.cc:2163
#4  0x0000000001ac8ee3 in trx_commit (trx=0x7fffd7bfe478) at /data/mysql-5.7.32/storage/innobase/trx/trx0trx.cc:2213
#5  0x0000000001ac95e7 in trx_commit_for_mysql (trx=0x7fffd7bfe478) at /data/mysql-5.7.32/storage/innobase/trx/trx0trx.cc:2432
#6  0x000000000189f315 in innobase_commit_low (trx=0x7fffd7bfe478) at /data/mysql-5.7.32/storage/innobase/handler/ha_innodb.cc:4274
#7  0x000000000189f800 in innobase_commit (hton=0x2d62fc0, thd=0x7ffdfc000b70, commit_trx=true) at /data/mysql-5.7.32/storage/innobase/handler/ha_innodb.cc:4436
#8  0x0000000000f0a271 in ha_commit_low (thd=0x7ffdfc000b70, all=true, run_after_commit=false) at /data/mysql-5.7.32/sql/handler.cc:1911
#9  0x00000000017c4ced in MYSQL_BIN_LOG::process_commit_stage_queue (this=0x2cc6180 <mysql_bin_log>, thd=0x7ffdfc000b70, first=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/binlog.cc:9058
#10 0x00000000017c65b6 in MYSQL_BIN_LOG::ordered_commit (this=0x2cc6180 <mysql_bin_log>, thd=0x7ffdfc000b70, all=true, skip_commit=false) at /data/mysql-5.7.32/sql/binlog.cc:9760
#11 0x00000000017c4632 in MYSQL_BIN_LOG::commit (this=0x2cc6180 <mysql_bin_log>, thd=0x7ffdfc000b70, all=true) at /data/mysql-5.7.32/sql/binlog.cc:8870
#12 0x0000000000f09f50 in ha_commit_trans (thd=0x7ffdfc000b70, all=true, ignore_global_read_lock=false) at /data/mysql-5.7.32/sql/handler.cc:1807
#13 0x000000000161721b in trans_commit (thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/transaction.cc:246
#14 0x000000000151b0de in mysql_execute_command (thd=0x7ffdfc000b70, first_level=true) at /data/mysql-5.7.32/sql/sql_parse.cc:4254
#15 0x000000000151e6b1 in mysql_parse (thd=0x7ffdfc000b70, parser_state=0x7ffe378b7550) at /data/mysql-5.7.32/sql/sql_parse.cc:5584
#16 0x0000000001513f3b in dispatch_command (thd=0x7ffdfc000b70, com_data=0x7ffe378b7cb0, command=COM_QUERY) at /data/mysql-5.7.32/sql/sql_parse.cc:1491
#17 0x0000000001512da9 in do_command (thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/sql_parse.cc:1032
#18 0x00000000016451f8 in handle_connection (arg=0x160325b0) at /data/mysql-5.7.32/sql/conn_handler/connection_handler_per_thread.cc:313
#19 0x0000000001cd42de in pfs_spawn_thread (arg=0x1600e0a0) at /data/mysql-5.7.32/storage/perfschema/pfs.cc:2197
#20 0x00007ffff7bc6dd5 in start_thread () from /lib64/libpthread.so.0
#21 0x00007ffff61b7ead in clone () from /lib64/libc.so.6


#0  log_write_low (str=0x7ffe378b4c62 "\201\033", str_len=13) at /data/mysql-5.7.32/storage/innobase/log/log0log.cc:461
#1  0x0000000001961df1 in mtr_write_log_t::operator() (this=0x7ffe378b48b7, block=0x7ffe378b4c50) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:393
#2  0x0000000001961e9f in dyn_buf_t<512ul>::for_each_block<mtr_write_log_t> (this=0x7ffe378b4c18, functor=...) at /data/mysql-5.7.32/storage/innobase/include/dyn0buf.h:357
#3  0x0000000001961046 in mtr_t::Command::finish_write (this=0x7ffe378b4920, len=15) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:830
#4  0x000000000196116c in mtr_t::Command::execute (this=0x7ffe378b4920) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:866
#5  0x000000000195fd1e in mtr_t::commit (this=0x7ffe378b49c0) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:496
#6  0x0000000001ac8d7c in trx_commit_low (trx=0x7fffd7bfe478, mtr=0x7ffe378b49c0) at /data/mysql-5.7.32/storage/innobase/trx/trx0trx.cc:2163
#7  0x0000000001ac8ee3 in trx_commit (trx=0x7fffd7bfe478) at /data/mysql-5.7.32/storage/innobase/trx/trx0trx.cc:2213
#8  0x0000000001ac95e7 in trx_commit_for_mysql (trx=0x7fffd7bfe478) at /data/mysql-5.7.32/storage/innobase/trx/trx0trx.cc:2432
#9  0x000000000189f315 in innobase_commit_low (trx=0x7fffd7bfe478) at /data/mysql-5.7.32/storage/innobase/handler/ha_innodb.cc:4274
#10 0x000000000189f800 in innobase_commit (hton=0x2d62fc0, thd=0x7ffdfc000b70, commit_trx=true) at /data/mysql-5.7.32/storage/innobase/handler/ha_innodb.cc:4436
#11 0x0000000000f0a271 in ha_commit_low (thd=0x7ffdfc000b70, all=true, run_after_commit=false) at /data/mysql-5.7.32/sql/handler.cc:1911
#12 0x00000000017c4ced in MYSQL_BIN_LOG::process_commit_stage_queue (this=0x2cc6180 <mysql_bin_log>, thd=0x7ffdfc000b70, first=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/binlog.cc:9058
#13 0x00000000017c65b6 in MYSQL_BIN_LOG::ordered_commit (this=0x2cc6180 <mysql_bin_log>, thd=0x7ffdfc000b70, all=true, skip_commit=false) at /data/mysql-5.7.32/sql/binlog.cc:9760
#14 0x00000000017c4632 in MYSQL_BIN_LOG::commit (this=0x2cc6180 <mysql_bin_log>, thd=0x7ffdfc000b70, all=true) at /data/mysql-5.7.32/sql/binlog.cc:8870
#15 0x0000000000f09f50 in ha_commit_trans (thd=0x7ffdfc000b70, all=true, ignore_global_read_lock=false) at /data/mysql-5.7.32/sql/handler.cc:1807
#16 0x000000000161721b in trans_commit (thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/transaction.cc:246
#17 0x000000000151b0de in mysql_execute_command (thd=0x7ffdfc000b70, first_level=true) at /data/mysql-5.7.32/sql/sql_parse.cc:4254
#18 0x000000000151e6b1 in mysql_parse (thd=0x7ffdfc000b70, parser_state=0x7ffe378b7550) at /data/mysql-5.7.32/sql/sql_parse.cc:5584
#19 0x0000000001513f3b in dispatch_command (thd=0x7ffdfc000b70, com_data=0x7ffe378b7cb0, command=COM_QUERY) at /data/mysql-5.7.32/sql/sql_parse.cc:1491
#20 0x0000000001512da9 in do_command (thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/sql_parse.cc:1032
#21 0x00000000016451f8 in handle_connection (arg=0x160325b0) at /data/mysql-5.7.32/sql/conn_handler/connection_handler_per_thread.cc:313
#22 0x0000000001cd42de in pfs_spawn_thread (arg=0x1600e0a0) at /data/mysql-5.7.32/storage/perfschema/pfs.cc:2197
#23 0x00007ffff7bc6dd5 in start_thread () from /lib64/libpthread.so.0
#24 0x00007ffff61b7ead in clone () from /lib64/libc.so.6

/*赃页的添加*/
#0  ReleaseBlocks::add_dirty_page_to_flush_list (this=0x7ffe378b34a0, slot=0x7ffe378b35c8) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:264
#1  0x0000000001961cd1 in ReleaseBlocks::operator() (this=0x7ffe378b34a0, slot=0x7ffe378b35c8) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:283
#2  0x00000000019624e0 in Iterate<ReleaseBlocks>::operator() (this=0x7ffe378b3490, block=0x7ffe378b35b8) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:77
#3  0x0000000001962105 in dyn_buf_t<512ul>::for_each_block_in_reverse<Iterate<ReleaseBlocks> > (this=0x7ffe378b3580, functor=...) at /data/mysql-5.7.32/storage/innobase/include/dyn0buf.h:375
#4  0x00000000019610ff in mtr_t::Command::release_blocks (this=0x7ffe378b3510) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:855
#5  0x00000000019611fc in mtr_t::Command::execute (this=0x7ffe378b3510) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:880
#6  0x000000000195fd1e in mtr_t::commit (this=0x7ffe378b3580) at /data/mysql-5.7.32/storage/innobase/mtr/mtr0mtr.cc:496
#7  0x0000000001ad8557 in trx_undo_assign_undo (trx=0x7fffd7bfed08, undo_ptr=0x7fffd7bff050, type=1) at /data/mysql-5.7.32/storage/innobase/trx/trx0undo.cc:1838
#8  0x0000000001ab5862 in trx_undo_report_row_operation (flags=0, op_type=1, thr=0x7ffdfc01b750, index=0x7ffdfc011830, clust_entry=0x7ffdfc0110e0, update=0x0, cmpl_info=0, rec=0x0, offsets=0x0,
roll_ptr=0x7ffe378b4130) at /data/mysql-5.7.32/storage/innobase/trx/trx0rec.cc:1940
#9  0x0000000001b0b8db in btr_cur_ins_lock_and_undo (flags=0, cursor=0x7ffe378b45a0, entry=0x7ffdfc0110e0, thr=0x7ffdfc01b750, mtr=0x7ffe378b49d0, inherit=0x7ffe378b41b0) at /data/mysql-5.7.32/s
torage/innobase/btr/btr0cur.cc:2983
#10 0x0000000001b0c11f in btr_cur_optimistic_insert (flags=0, cursor=0x7ffe378b45a0, offsets=0x7ffe378b4ef0, heap=0x7ffe378b4ef8, entry=0x7ffdfc0110e0, rec=0x7ffe378b4ee8, big_rec=0x7ffe378b4f00
, n_ext=0, thr=0x7ffdfc01b750, mtr=0x7ffe378b49d0) at /data/mysql-5.7.32/storage/innobase/btr/btr0cur.cc:3209
#11 0x00000000019daa62 in row_ins_clust_index_entry_low (flags=0, mode=2, index=0x7ffdfc011830, n_uniq=1, entry=0x7ffdfc0110e0, n_ext=0, thr=0x7ffdfc01b750, dup_chk_only=false) at /data/mysql-5.
7.32/storage/innobase/row/row0ins.cc:2615
#12 0x00000000019dc963 in row_ins_clust_index_entry (index=0x7ffdfc011830, entry=0x7ffdfc0110e0, thr=0x7ffdfc01b750, n_ext=0, dup_chk_only=false) at /data/mysql-5.7.32/storage/innobase/row/row0i
ns.cc:3301
#13 0x00000000019dce62 in row_ins_index_entry (index=0x7ffdfc011830, entry=0x7ffdfc0110e0, thr=0x7ffdfc01b750) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3437
#14 0x00000000019dd3a2 in row_ins_index_entry_step (node=0x7ffdfc01b4b0, thr=0x7ffdfc01b750) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3587
#15 0x00000000019dd702 in row_ins (node=0x7ffdfc01b4b0, thr=0x7ffdfc01b750) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3725
#16 0x00000000019ddb66 in row_ins_step (thr=0x7ffdfc01b750) at /data/mysql-5.7.32/storage/innobase/row/row0ins.cc:3861
#17 0x00000000019fbaf9 in row_insert_for_mysql_using_ins_graph (mysql_rec=0x7ffdfc00f638 "\376f", prebuilt=0x7ffdfc01a880) at /data/mysql-5.7.32/storage/innobase/row/row0mysql.cc:1746
#18 0x00000000019fc067 in row_insert_for_mysql (mysql_rec=0x7ffdfc00f638 "\376f", prebuilt=0x7ffdfc01a880) at /data/mysql-5.7.32/storage/innobase/row/row0mysql.cc:1867
#19 0x00000000018a6238 in ha_innobase::write_row (this=0x7ffdfc00f340, record=0x7ffdfc00f638 "\376f") at /data/mysql-5.7.32/storage/innobase/handler/ha_innodb.cc:7627
#20 0x0000000000f18772 in handler::ha_write_row (this=0x7ffdfc00f340, buf=0x7ffdfc00f638 "\376f") at /data/mysql-5.7.32/sql/handler.cc:8107
#21 0x000000000173e598 in write_record (thd=0x7ffdfc000b70, table=0x7ffdfc00e980, info=0x7ffe378b6070, update=0x7ffe378b60f0) at /data/mysql-5.7.32/sql/sql_insert.cc:1895
#22 0x000000000173b71e in Sql_cmd_insert::mysql_insert (this=0x7ffdfc006a28, thd=0x7ffdfc000b70, table_list=0x7ffdfc006498) at /data/mysql-5.7.32/sql/sql_insert.cc:776
#23 0x0000000001742094 in Sql_cmd_insert::execute (this=0x7ffdfc006a28, thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/sql_insert.cc:3142
#24 0x0000000001518eae in mysql_execute_command (thd=0x7ffdfc000b70, first_level=true) at /data/mysql-5.7.32/sql/sql_parse.cc:3606
#25 0x000000000151e6b1 in mysql_parse (thd=0x7ffdfc000b70, parser_state=0x7ffe378b7550) at /data/mysql-5.7.32/sql/sql_parse.cc:5584
#26 0x0000000001513f3b in dispatch_command (thd=0x7ffdfc000b70, com_data=0x7ffe378b7cb0, command=COM_QUERY) at /data/mysql-5.7.32/sql/sql_parse.cc:1491
#27 0x0000000001512da9 in do_command (thd=0x7ffdfc000b70) at /data/mysql-5.7.32/sql/sql_parse.cc:1032
#28 0x00000000016451f8 in handle_connection (arg=0x15fafc90) at /data/mysql-5.7.32/sql/conn_handler/connection_handler_per_thread.cc:313
#29 0x0000000001cd42de in pfs_spawn_thread (arg=0x15ff4af0) at /data/mysql-5.7.32/storage/perfschema/pfs.cc:2197
#30 0x00007ffff7bc6dd5 in start_thread () from /lib64/libpthread.so.0
#31 0x00007ffff61b7ead in clone () from /lib64/libc.so.6
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
对于QTreeWidget的redo操作,如果insertChild方法没有更新,可能是因为你没有正确地实现redo操作。在实现redo操作时,你需要确保你重新应用了之前的操作,并且更新了模型和视图以反映新的更改。 你可以使用QUndoStack类来管理你的撤销和重做操作。当你执行插入新节点的操作时,将它们添加到QUndoStack对象中,以便可以撤销或重做它们。当你执行redo操作时,你需要重新插入之前插入的节点,并更新模型和视图以反映新的更改。 以下是一个示例代码片段,演示如何实现redo操作并更新QTreeWidget: ```python class MyUndoStack(QUndoStack): def __init__(self, tree_widget): super().__init__() self.tree_widget = tree_widget def redo(self): super().redo() # Get the last command and redo it command = self.command(self.index()) if isinstance(command, MyInsertCommand): # Insert the child item again item = command.item parent = command.parent index = command.index parent.insertChild(index, item) # Update the tree widget self.tree_widget.addTopLevelItem(item) ``` 在这个示例中,我们自定义了一个QUndoStack的子类MyUndoStack,并重redo方法。在redo方法中,我们首先调用父类的redo方法以重新应用之前的操作。然后,我们获取最后一个命令并检查它是否是我们自定义的插入命令MyInsertCommand。如果是,我们重新插入节点并更新QTreeWidget。 希望这能帮助你解决问题。如果你有任何其他问题,请随时问我。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值