summaryrefslogtreecommitdiff
path: root/storage/ndb/src/kernel/blocks/dbdict/CreateTable.txt
blob: 0b37e5d767fa82448bad6e7d0307f07f8d614136 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

1) Receive from client (sequence of DICTTABINFO)

2) DICT_SCHEMAREQ -> all DICTs
   Write ADD_STARTED in schema file

3) Pack table description

4) DICTTABINFO -> all DICTs (but self) (containing packed table info)
                  self -> Write 2 file
   1) Write 2 file

5) DICT_SCHEMAREQ -> all DICTs
   Write UPDATE_PAGE_COUNT in schema file

6) DIADDTABREQ -> local DIH
   1) Create fragments
   2) For each fragment
        DIHADDFRAGREQ -> all DIH
   3) For each fragment
        DICTFRAGSREQ -> local DICT
        1) LQHFRAGREQ -> concerned LQH
        2) For each attribute
           LQHADDATTREQ -> concerned LQH

7) WAIT_GCP -> local DIH

8) DICT_SCHEMAREQ -> all DICTs
   Write TABLE_ADD_COMMITTED in schema file

9) TAB_COMMITREQ -> all LQH & DIH

10) TC_SCHVERREQ -> all TC

11) UNBLO_DICTREQ -> all DICT