MySQL Technical Insider InnoDB Storage Engine Study Notes Chapter 10 Compilation and Debugging of InnoDB Storage Engine Source Code

The source code can be downloaded on the MySQL official website. The structure of the downloaded file after decompression is as follows:
Insert picture description here
The source code of all storage engines is placed under the storage folder:
Insert picture description here
The structure of the source code folder of the InnoDB engine:
Insert picture description here
The role of some of the source code:
1.btr: The realization of B+ tree.
2.buf: The realization of the buffer pool, including the LRU algorithm, Flush refresh algorithm, etc.
3.dict: The realization of InnoDB engine memory data dictionary.
4.dyn: The realization of InnoDB engine dynamic array.
5.fil: The file data structure in the InnoDB engine and some operations on the file.
6.fsp: can be understood as file space, that is, the management of physical files of the InnoDB engine, such as pages, areas, and segments.
7.ha: The realization of hash algorithm.
8.handler: inherited from MySQL's handler, the implementation of plug-in storage engine.
9.ibuf: the realization of insert buffer.
10.include: InnoDB puts the header files in this folder.
11.lock: The realization of InnoDB engine lock.
12.log: The realization of log buffer and redo log files.
13.mem: Auxiliary buffer pool implementation, used to apply for memory for some data structures.
14.mtr: The underlying implementation of transactions.
15.os: Encapsulate the operations of the following operating systems.
16.page: The realization of the page.
17.row: Operations on various types of row data.
18.srv: For the design of InnoDB engine parameters.
19.sync: The realization of InnoDB storage engine mutex.
20.thr: A portable thread library encapsulated by the InnoDB engine.
21.trx: The realization of transactions.
22.ut: Tools.

Guess you like

Origin blog.csdn.net/tus00000/article/details/114404616