summaryrefslogtreecommitdiff
path: root/storage/ndb/src/kernel/blocks/SystemRestart.new.txt
diff options
context:
space:
mode:
Diffstat (limited to 'storage/ndb/src/kernel/blocks/SystemRestart.new.txt')
-rw-r--r--storage/ndb/src/kernel/blocks/SystemRestart.new.txt61
1 files changed, 61 insertions, 0 deletions
diff --git a/storage/ndb/src/kernel/blocks/SystemRestart.new.txt b/storage/ndb/src/kernel/blocks/SystemRestart.new.txt
new file mode 100644
index 00000000000..3738de28df8
--- /dev/null
+++ b/storage/ndb/src/kernel/blocks/SystemRestart.new.txt
@@ -0,0 +1,61 @@
+
+DIH DICT CNTR
+---------------------- ---------------------- ---------------------
+ <- DIHRESTARTREQ
+Check for sysfile
+DIH_RESTARTCONF ->
+
+NDB_STTORY -> DICT (sp=1)
+ Read schema file
+
+******************************************************************************
+* Elect master
+******************************************************************************
+
+-- Master DIH --
+
+Read sysfile
+
+COPY_GCIREQ -> all DIHs
+
+DICTSTARTREQ -> local DICT (master)
+
+ master
+ ======
+ For each table (that should be started)
+ 1) ReadTableFile
+ 2) DI_ADD_TAB_REQ -> local DIH
+
+1) ReadTableFile (DIH)
+2) COPY_TABREQ -> all DIH (but self)
+3) For each local frag
+ ADD_FRAG_REQ -> local DICT
+4) DI_ADD_TAB_CONF
+
+ SCHEMA_INFO -> all DICTs
+ Info = schema file
+
+ Participant
+ ===========
+ 1) For each table
+ 1) If TableStatus match
+ ReadTableFile
+ else
+ GET_TABINFOREQ
+ 2) WriteTableFile
+ 3) Parse Table Data
+ 4) DI_ADD_TAB_REQ -> local DIH
+
+ <- SCHEMA_INFOCONF
+
+
+ <- DICTSTARTCONF
+
+For each fragment
+ IF Fragment is logged
+ START_FRAGREQ -> LQH x
+
+ START_RECREQ -> all LQH
+ Note does not wait for START_FRAGCONF
+
+NDB_STARTCONF ->