- 客户端发送sql 语句后的堆栈
#0 0x0000000100370565 in do_command(THD*) at percona-server-Percona-Server-5.6.37-82.2/sql/sql_parse.cc:1062
#1 0x00000001002f3318 in do_handle_one_connection(THD*) at percona-server-Percona-Server-5.6.37-82.2/sql/sql_connect.cc:1590
#2 0x00000001002f303d in ::handle_one_connection(void *) at percona-server-Percona-Server-5.6.37-82.2/sql/sql_connect.cc:1494
#3 0x00000001009ff53d in ::pfs_spawn_thread(void *) at percona-server-Percona-Server-5.6.37-82.2/storage/perfschema/pfs.cc:1860
#4 0x0000000101a27665 in _pthread_body ()
#5 0x0000000101a27511 in _pthread_start ()
#6 0x0000000101a26bfd in thread_start ()
command= (enum enum_server_command) (uchar) packet[0];
根据sql 语句类型分发请求到不同的函数。