ChunkA chunk of data, containing one or multiple pages.
Chunks are page aligned (each page is usually 4096 bytes).
There are at most 67 million (2^26) chunks,
each chunk is at most 2 GB large.
MAX_HEADER_LENGTH = 1024The maximum length of a chunk header, in bytes.
FOOTER_LENGTH = 128The length of the chunk footer. The longest footer is:
chunk:ffffffff,block:ffffffffffffffff,
version:ffffffffffffffff,fletcher:ffffffff
MAX_ID = 67108863The maximum chunk id.
blockThe start block number within the file.
collectPriorityThe garbage collection priority. Priority 0 means it needs to be
collected, a high value means low priority.
idThe chunk id.
lenThe length in number of blocks.
mapIdThe last used map id.
maxLenThe sum of the max length of all pages.
maxLenLiveThe sum of the max length of all pages that are in use.
metaRootPosThe position of the meta root.
nextThe predicted position of the next chunk.
pageCountThe total number of pages in this chunk.
pageCountLiveThe number of pages still alive.
timeWhen this chunk was created, in milliseconds after the store was created.
unusedWhen this chunk was no longer needed, in milliseconds after the store was
created. After this, the chunk is kept alive a bit longer (in case it is
referenced in older versions).
versionThe version stored in this chunk.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||