1. main()在sql/mysqld.cc中

2. 接收请求的函数是: handle_connetions_sockets() , sql/

3. 处理请求的入口:handle_one_connection() , sql/

4. 分发:command: do_command()和dispatch_command(), sql/

5. 解析query: mysql_parse(), sql/

6. 优化:mysql_select(),  sql/

7. 表锁相关:mysql_lock_table() in sql/lock.cc及其它

8. 表数据变更:mysql_update() sql/ 及其它

9. 存储引擎接口: handler类及其部分函数的实现, sql/handler.h,  sql/

10. Innodb实现:sl/ha_innodb.h, sql/

11. 状态回送: mysqld_show() in sql/ 及其它

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.