Commit 3ca55660 authored by unknown's avatar unknown

ndb - dict

  remove dead code


storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
  remove dead code
storage/ndb/src/kernel/blocks/dbdict/Dbdict.hpp:
  remove dead code
parent d687f1b4
...@@ -4086,9 +4086,7 @@ Dbdict::execALTER_TABLE_REQ(Signal* signal) ...@@ -4086,9 +4086,7 @@ Dbdict::execALTER_TABLE_REQ(Signal* signal)
bool ok = false; bool ok = false;
switch(tabState){ switch(tabState){
case TableRecord::NOT_DEFINED: case TableRecord::NOT_DEFINED:
case TableRecord::REORG_TABLE_PREPARED:
case TableRecord::DEFINING: case TableRecord::DEFINING:
case TableRecord::CHECKED:
jam(); jam();
alterTableRef(signal, req, AlterTableRef::NoSuchTable); alterTableRef(signal, req, AlterTableRef::NoSuchTable);
return; return;
...@@ -4339,9 +4337,7 @@ Dbdict::execALTER_TAB_REQ(Signal * signal) ...@@ -4339,9 +4337,7 @@ Dbdict::execALTER_TAB_REQ(Signal * signal)
bool ok = false; bool ok = false;
switch(tabState){ switch(tabState){
case TableRecord::NOT_DEFINED: case TableRecord::NOT_DEFINED:
case TableRecord::REORG_TABLE_PREPARED:
case TableRecord::DEFINING: case TableRecord::DEFINING:
case TableRecord::CHECKED:
jam(); jam();
alterTabRef(signal, req, AlterTableRef::NoSuchTable); alterTabRef(signal, req, AlterTableRef::NoSuchTable);
return; return;
...@@ -6690,9 +6686,7 @@ Dbdict::execDROP_TABLE_REQ(Signal* signal){ ...@@ -6690,9 +6686,7 @@ Dbdict::execDROP_TABLE_REQ(Signal* signal){
bool ok = false; bool ok = false;
switch(tabState){ switch(tabState){
case TableRecord::NOT_DEFINED: case TableRecord::NOT_DEFINED:
case TableRecord::REORG_TABLE_PREPARED:
case TableRecord::DEFINING: case TableRecord::DEFINING:
case TableRecord::CHECKED:
jam(); jam();
dropTableRef(signal, req, DropTableRef::NoSuchTable); dropTableRef(signal, req, DropTableRef::NoSuchTable);
return; return;
...@@ -7718,7 +7712,6 @@ Dbdict::execLIST_TABLES_REQ(Signal* signal) ...@@ -7718,7 +7712,6 @@ Dbdict::execLIST_TABLES_REQ(Signal* signal)
if(DictTabInfo::isTable(type)){ if(DictTabInfo::isTable(type)){
switch (tablePtr.p->tabState) { switch (tablePtr.p->tabState) {
case TableRecord::DEFINING: case TableRecord::DEFINING:
case TableRecord::CHECKED:
conf->setTableState(pos, DictTabInfo::StateBuilding); conf->setTableState(pos, DictTabInfo::StateBuilding);
break; break;
case TableRecord::PREPARE_DROPPING: case TableRecord::PREPARE_DROPPING:
......
...@@ -320,9 +320,7 @@ public: ...@@ -320,9 +320,7 @@ public:
enum TabState { enum TabState {
NOT_DEFINED = 0, NOT_DEFINED = 0,
REORG_TABLE_PREPARED = 1,
DEFINING = 2, DEFINING = 2,
CHECKED = 3,
DEFINED = 4, DEFINED = 4,
PREPARE_DROPPING = 5, PREPARE_DROPPING = 5,
DROPPING = 6, DROPPING = 6,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment