麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 課堂 > 基礎知識 > 正文

GTID中的運維

2024-09-12 20:30:07
字體:
來源:轉載
供稿:網友
  歡迎關注我的《深入理解MySQL主從原理 32講 》,如下:
 
  一、ONGOING_ANONYMOUS_TRANSACTION_COUNT
  主庫 生成GTID: 這下面可以調用匿名+1
 
  (gdb) bt
  #0  Gtid_state::generate_automatic_gtid (this=0x308ab20, thd=0x7ffe7c000b70, specified_sidno=0, specified_gno=0, locked_sidno=0x7fffec0f38c0)
      at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/rpl_gtid_state.cc:507
  #1  0x0000000001877a61 in MYSQL_BIN_LOG::assign_automatic_gtids_to_flush_group (this=0x2e87840, first_seen=0x7ffe7c000b70)
      at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/binlog.cc:1401
  #2  0x000000000188a19c in MYSQL_BIN_LOG::process_flush_stage_queue (this=0x2e87840, total_bytes_var=0x7fffec0f3a08, rotate_var=0x7fffec0f3a07,
      out_queue_var=0x7fffec0f39f8) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/binlog.cc:9143
  #3  0x000000000188b743 in MYSQL_BIN_LOG::ordered_commit (this=0x2e87840, thd=0x7ffe7c000b70, all=false, skip_commit=false)
      at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/binlog.cc:9782
  #4  0x0000000001889e22 in MYSQL_BIN_LOG::commit (this=0x2e87840, thd=0x7ffe7c000b70, all=false) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/binlog.cc:9033
  #5  0x0000000000f802eb in ha_commit_trans (thd=0x7ffe7c000b70, all=false, ignore_global_read_lock=false)
      at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/handler.cc:1830
  #6  0x00000000016dd5b9 in trans_commit_stmt (thd=0x7ffe7c000b70) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/transaction.cc:458
  #7  0x00000000015d19d1 in mysql_execute_command (thd=0x7ffe7c000b70, first_level=true) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/sql_parse.cc:5293
  #8  0x00000000015d30c6 in mysql_parse (thd=0x7ffe7c000b70, parser_state=0x7fffec0f6600) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/sql_parse.cc:5901
  #9  0x00000000015c6c5a in dispatch_command (thd=0x7ffe7c000b70, com_data=0x7fffec0f6d70, command=COM_QUERY)
      at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/sql_parse.cc:1490
  #10 0x00000000015c59e7 in do_command (thd=0x7ffe7c000b70) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/sql_parse.cc:1021
  #11 0x000000000170e660 in handle_connection (arg=0x34a9940) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/conn_handler/connection_handler_per_thread.cc:312
  #12 0x0000000001945620 in pfs_spawn_thread (arg=0x66eee50) at /root/mysqlall/percona-server-locks-detail-5.7.22/storage/perfschema/pfs.cc:2190
  #13 0x00007ffff7bc6aa1 in start_thread () from /lib64/libpthread.so.0
  #14 0x00007ffff6719bcd in clone () from /lib64/libc.so.6
  主庫在COMMIT節(jié)點 匿名-1
 
  #0  Gtid_state::update_commit_group (this=0x308ab20, first_thd=0x7ffe7c000b70) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/rpl_gtid_state.cc:148
  #1  0x000000000188a59f in MYSQL_BIN_LOG::process_commit_stage_queue (this=0x2e87840, thd=0x7ffe7c000b70, first=0x7ffe7c000b70)
      at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/binlog.cc:9238
  #2  0x000000000188bd46 in MYSQL_BIN_LOG::ordered_commit (this=0x2e87840, thd=0x7ffe7c000b70, all=false, skip_commit=false)
      at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/binlog.cc:9921
  #3  0x0000000001889e22 in MYSQL_BIN_LOG::commit (this=0x2e87840, thd=0x7ffe7c000b70, all=false) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/binlog.cc:9033
  #4  0x0000000000f802eb in ha_commit_trans (thd=0x7ffe7c000b70, all=false, ignore_global_read_lock=false)
      at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/handler.cc:1830
  #5  0x00000000016dd5b9 in trans_commit_stmt (thd=0x7ffe7c000b70) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/transaction.cc:458
  #6  0x00000000015d19d1 in mysql_execute_command (thd=0x7ffe7c000b70, first_level=true) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/sql_parse.cc:5293
  #7  0x00000000015d30c6 in mysql_parse (thd=0x7ffe7c000b70, parser_state=0x7fffec0f6600) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/sql_parse.cc:5901
  #8  0x00000000015c6c5a in dispatch_command (thd=0x7ffe7c000b70, com_data=0x7fffec0f6d70, command=COM_QUERY)
      at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/sql_parse.cc:1490
  #9  0x00000000015c59e7 in do_command (thd=0x7ffe7c000b70) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/sql_parse.cc:1021
  #10 0x000000000170e660 in handle_connection (arg=0x34a9940) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/conn_handler/connection_handler_per_thread.cc:312
  #11 0x0000000001945620 in pfs_spawn_thread (arg=0x66eee50) at /root/mysqlall/percona-server-locks-detail-5.7.22/storage/perfschema/pfs.cc:2190
  #12 0x00007ffff7bc6aa1 in start_thread () from /lib64/libpthread.so.0
  #13 0x00007ffff6719bcd in clone () from /lib64/libc.so.6
  從庫 GTID_APPLY的時候 調用
  Gtid_log_event::do_apply_event - > set_gtid_next 匿名+1
 
  從庫是調用Gtid_state::update_gtids_impl 匿名-1
 
  Xid_log_event::do_commit - >MYSQL_BIN_LOG::gtid_end_transaction -> update_on_commit->update_gtids_impl
 
  二、MASTER_AUTO_POSITION = 1棧幀
  清理了所有的replay log
 
  #0  Relay_log_info::purge_relay_logs (this=0x67618a0, thd=0x7ffe7c000b70, just_reset=false, errmsg=0x7fffec0f4b80, delete_only=false)
      at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/rpl_rli.cc:1239
  #1  0x00000000018cd130 in change_master (thd=0x7ffe7c000b70, mi=0x6670230, lex_mi=0x7ffe7c0037e0, preserve_logs=false)
      at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/rpl_slave.cc:11337
  #2  0x00000000018cdcac in change_master_cmd (thd=0x7ffe7c000b70) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/rpl_slave.cc:11688
  #3  0x00000000015cabc5 in mysql_execute_command (thd=0x7ffe7c000b70, first_level=true) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/sql_parse.cc:3125
  #4  0x00000000015d30c6 in mysql_parse (thd=0x7ffe7c000b70, parser_state=0x7fffec0f6600) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/sql_parse.cc:5901
  #5  0x00000000015c6c5a in dispatch_command (thd=0x7ffe7c000b70, com_data=0x7fffec0f6d70, command=COM_QUERY)
      at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/sql_parse.cc:1490
  #6  0x00000000015c59e7 in do_command (thd=0x7ffe7c000b70) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/sql_parse.cc:1021
  #7  0x000000000170e660 in handle_connection (arg=0x5f72350) at /root/mysqlall/percona-server-locks-detail-5.7.22/sql/conn_handler/connection_handler_per_thread.cc:312
  #8  0x0000000001945620 in pfs_spawn_thread (arg=0x67cfa60) at /root/mysqlall/percona-server-locks-detail-5.7.22/storage/perfschema/pfs.cc:2190
  #9  0x00007ffff7bc6aa1 in start_thread () from /lib64/libpthread.so.0
  #10 0x00007ffff6719bcd in clone () from /lib64/libc.so.6

(編輯:武林網)

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 毛片一区二区三区四区 | 国产日本欧美在线观看 | 亚洲综合视频在线播放 | 中文字幕一区二区三区久久 | 久久羞羞 | 欧美日本另类 | 九九热这里只有精品8 | 国产精品免费麻豆入口 | 欧美日韩亚洲一区二区三区 | 92看片淫黄大片欧美看国产片 | 热99热| 欧美性精品videofree | 91久久极品少妇韩国 | 亚洲第一成人久久网站 | 看一级毛片 | 成人在线观看免费视频 | 国产精品久久久免费 | 亚洲精品 在线播放 | 亚洲视频在线视频 | 亚洲性视频 | 欧美日韩免费观看视频 | 福利在线国产 | 无遮挡一级毛片视频 | 九九视频在线观看6 | 免费黄色在线 | 精品国产乱码一区二区三区四区 | 黄色特级一级片 | 久久人人97超碰国产公开结果 | 精品二区在线观看 | 欧美大电影免费观看 | 国产精品久久久久久久亚洲按摩 | av免费提供 | 91精品久久久久久久久久久 | 久久美女色视频 | 97黄色网| 日日摸夜夜骑 | 久色免费视频 | 国产毛片aaa一区二区三区视频 | 色人阁导航 | 久久久久久久久久久av | 日本在线不卡一区二区 |