-
-
Save yoku0825/a085719818ef507543ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> SELECT 1; | |
## ここではほとんど見えない | |
Breakpoint 5, mysql_real_query (mysql=0xa56940, query=0xa64700 "SELECT 1", length=8) at /data/tmp/connector/sql-common/client.c:4794 | |
4794 { | |
(gdb) p mysql->fabric_context | |
$1 = (struct st_fabric_context *) 0xa7b010 | |
(gdb) p *mysql->fabric_context | |
$2 = { | |
m_sess = 0xa56940, | |
m_conn = 0xa86170 | |
} | |
(gdb) c | |
Continuing. | |
## こっちだと見える(thisはmysql->fabric_contextを受け取っているのに) | |
Breakpoint 4, Fabric_context::pick_connection (this=0xa7b010, connect=true) at /data/tmp/connector/libmysql/fabric_commands.cc:769 | |
769 { | |
(gdb) p this->m_mode | |
$3 = Fabric_context::NA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment