Commit 55400a00 authored by unknown's avatar unknown

ndb - bug#27286

  make sure master node is sendable, when getting ref::NotMaster 


storage/ndb/src/mgmsrv/MgmtSrvr.cpp:
  make sure master node is sendable, when getting ref::NotMaster
parent d0942af8
...@@ -2131,6 +2131,8 @@ MgmtSrvr::alloc_node_id_req(NodeId free_node_id, enum ndb_mgm_node_type type) ...@@ -2131,6 +2131,8 @@ MgmtSrvr::alloc_node_id_req(NodeId free_node_id, enum ndb_mgm_node_type type)
{ {
do_send = 1; do_send = 1;
nodeId = refToNode(ref->masterRef); nodeId = refToNode(ref->masterRef);
if (!theFacade->get_node_alive(nodeId))
nodeId = 0;
continue; continue;
} }
return ref->errorCode; return ref->errorCode;
...@@ -2621,6 +2623,8 @@ MgmtSrvr::startBackup(Uint32& backupId, int waitCompleted) ...@@ -2621,6 +2623,8 @@ MgmtSrvr::startBackup(Uint32& backupId, int waitCompleted)
ndbout_c("I'm not master resending to %d", nodeId); ndbout_c("I'm not master resending to %d", nodeId);
#endif #endif
do_send = 1; // try again do_send = 1; // try again
if (!theFacade->get_node_alive(nodeId))
m_master_node = nodeId = 0;
continue; continue;
} }
event.Event = BackupEvent::BackupFailedToStart; event.Event = BackupEvent::BackupFailedToStart;
......
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