Commit 4b13824c authored by joreland@mysql.com's avatar joreland@mysql.com

Bug fix for testOIBasic

parent 844a9387
...@@ -564,17 +564,17 @@ Ndb::handleReceivedSignal(NdbApiSignal* aSignal, LinearSectionPtr ptr[3]) ...@@ -564,17 +564,17 @@ Ndb::handleReceivedSignal(NdbApiSignal* aSignal, LinearSectionPtr ptr[3])
if (tFirstDataPtr == 0) goto InvalidSignal; if (tFirstDataPtr == 0) goto InvalidSignal;
if (tWaitState != WAIT_TC_SEIZE) { if (tWaitState != WAIT_TC_SEIZE) {
return; goto InvalidSignal;
}//if }//if
tCon = void2con(tFirstDataPtr); tCon = void2con(tFirstDataPtr);
if (tCon->checkMagicNumber() != 0) { if (tCon->checkMagicNumber() != 0) {
return; goto InvalidSignal;
}//if }//if
tReturnCode = tCon->receiveTCSEIZECONF(aSignal); tReturnCode = tCon->receiveTCSEIZECONF(aSignal);
if (tReturnCode != -1) { if (tReturnCode != -1) {
theWaiter.m_state = NO_WAIT; theWaiter.m_state = NO_WAIT;
} else { } else {
return; goto InvalidSignal;
}//if }//if
break; break;
} }
...@@ -702,7 +702,7 @@ Ndb::handleReceivedSignal(NdbApiSignal* aSignal, LinearSectionPtr ptr[3]) ...@@ -702,7 +702,7 @@ Ndb::handleReceivedSignal(NdbApiSignal* aSignal, LinearSectionPtr ptr[3])
tDataPtr + ScanTabConf::SignalLength, tDataPtr + ScanTabConf::SignalLength,
tLen - ScanTabConf::SignalLength); tLen - ScanTabConf::SignalLength);
} }
if (tReturnCode != -1) if (tReturnCode != -1 && tWaitState == WAIT_SCAN)
theWaiter.m_state = NO_WAIT; theWaiter.m_state = NO_WAIT;
break; break;
} else { } else {
......
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