mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
added error code for failing send signal and timeout waiting for node failure
added error code for failing send signal and timeout waiting for node failure ndb/src/ndbapi/NdbDictionaryImpl.cpp: added error code for failing send signal and timeout waiting for node failure ndb/src/ndbapi/ndberror.c: added error code for failing send signal and timeout waiting for node failure
This commit is contained in:
parent
3dbfc95c33
commit
7c14308058
2 changed files with 6 additions and 0 deletions
|
@ -880,6 +880,7 @@ NdbDictInterface::dictSignal(NdbApiSignal* signal,
|
|||
r = m_transporter->sendSignal(signal, aNodeId);
|
||||
}
|
||||
if(r != 0){
|
||||
m_error.code= 4007;
|
||||
m_transporter->unlock_mutex();
|
||||
continue;
|
||||
}
|
||||
|
@ -903,7 +904,10 @@ NdbDictInterface::dictSignal(NdbApiSignal* signal,
|
|||
* Handle error codes
|
||||
*/
|
||||
if(m_waiter.m_state == WAIT_NODE_FAILURE)
|
||||
{
|
||||
m_error.code = 4013;
|
||||
continue;
|
||||
}
|
||||
|
||||
if(m_waiter.m_state == WST_WAIT_TIMEOUT)
|
||||
{
|
||||
|
|
|
@ -137,10 +137,12 @@ ErrorBundle ErrorCodes[] = {
|
|||
/**
|
||||
* Unknown result
|
||||
*/
|
||||
{ 4007, UR, "Send to ndbd node failed" },
|
||||
{ 4008, UR, "Receive from NDB failed" },
|
||||
{ 4009, UR, "Cluster Failure" },
|
||||
{ 4012, UR,
|
||||
"Request ndbd time-out, maybe due to high load or communication problems"},
|
||||
{ 4013, UR, "Request timed out in waiting for node failure"},
|
||||
{ 4024, UR,
|
||||
"Time-out, most likely caused by simple read or cluster failure" },
|
||||
|
||||
|
|
Loading…
Reference in a new issue