• unknown's avatar
    ndb - bug#22696 · 7d50a31b
    unknown authored
      Fix handling of multiple redo phases
      - set correct state
      - handle 4 phases, by moving START_FRAGCONF to end of phase instead of beginning...
    
    
    storage/ndb/src/kernel/blocks/dblqh/Dblqh.hpp:
      remove unused state ACTIVE_REMOVE_AFTER
      remove unused variable nextLcp
      remove unused methods (BUILD_INDX)
      add counter of outstanding GSN_EXEC_FRAGREQ
      remove c_redo_complete_fragments cause it fits badly with functional multi-redo-phases
    storage/ndb/src/kernel/blocks/dblqh/DblqhInit.cpp:
      remove unused stuff
    storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
      1) set correct state before starting next non-empty REDO phase
      2) move GSN_START_FRAGCONF to execFRAGCONF instead of when sending GSN_EXEC_FRAGREQ
         or fragments with 4 redo-phases would never be complete...
    storage/ndb/test/ndbapi/testSystemRestart.cpp:
      testcase
    storage/ndb/test/run-test/daily-basic-tests.txt:
      testcase
    7d50a31b
testSystemRestart.cpp 55.9 KB