Next: , Previous: Free blocks list, Up: Internals


4.6 Data block

Default data block size is 1MiB ( 1048576 bytes, 256 pages on ix86 ). This value can be altered during creation of file See Block size. ( and may be resized later - currently unsupported)

A data block contains following sections :

All three trees in datablock lives in common address space - when the data block is empty records tree has no nodes, free-list by address and free-list by size have one common node with address after block header and size equal block size - block header.

Each node (struct) of the AVL tree, e.g. struct in C, has to begin with two items:

record.png
Example of record