~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to storage/maria/file_formats.txt

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# This should contain a description of the file format for most Maria files
 
3
#
 
4
 
 
5
# Description of the header in the index file
 
6
 
 
7
Header, 24 bytes
 
8
 
 
9
Pos  Length
 
10
 
 
11
0    4  file_version
 
12
4    2  options
 
13
6    2  header_length
 
14
8    2  state_info_length
 
15
10   2  base_info_length
 
16
12   2  base_pos
 
17
14   2  key_parts
 
18
16   2  unique_key_parts
 
19
18   1  keys
 
20
19   1  uniques
 
21
20   1  language
 
22
21   1  fulltext_keys
 
23
22   1  data_file_type
 
24
23   1  org_data_file_type
 
25
 
 
26
 
 
27
Status part
 
28
 
 
29
24   2  open_count
 
30
26   2  state_changed
 
31
28   7  create_rename_lsn
 
32
     7  is_of_horizon
 
33
     7  skip_redo_lsn
 
34
     8  state.records
 
35
     8  state->state.del
 
36
     8  state->split
 
37
     8  state->dellink
 
38
     8  state->first_bitmap_with_space
 
39
     8  state->state.key_file_length
 
40
     8  state->state.data_file_length
 
41
     8  state->state.empty
 
42
     8  state->state.key_empty
 
43
     8  state->auto_increment
 
44
     8  state->state.checksum
 
45
     4  state->process
 
46
     4  state->unique
 
47
     4  state->status
 
48
     4  state->update_count
 
49
 
 
50
     1  state->sortkey
 
51
     1  reserved
 
52
 
 
53
for each key
 
54
     8  state->key_root[i]
 
55
 
 
56
     8  state->key_del
 
57
     4  state->sec_index_changed
 
58
     4  state->sec_index_used
 
59
     4  state->version
 
60
     8  state->key_map
 
61
     8  state->create_time
 
62
     8  state->recover_time
 
63
     8  state->check_time
 
64
     8  state->records_at_analyze
 
65
 
 
66
for each key
 
67
    4   reserved
 
68
 
 
69
for each key part
 
70
    8   state->rec_per_key_part[i]
 
71
    4   state->nulls_per_key_part[i]