Commit 4a8dbd3f authored by jonas@mc01.ndb.mysql.com's avatar jonas@mc01.ndb.mysql.com

Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-jonas

into mc01.ndb.mysql.com:/space/jonas/mysql-5.1-jonas
parents e576b246 9064f067
...@@ -478,10 +478,14 @@ int NdbScanOperation::nextResultImpl(bool fetchAllowed, bool forceSend) ...@@ -478,10 +478,14 @@ int NdbScanOperation::nextResultImpl(bool fetchAllowed, bool forceSend)
*/ */
PollGuard poll_guard(tp, &theNdb->theImpl->theWaiter, PollGuard poll_guard(tp, &theNdb->theImpl->theWaiter,
theNdb->theNdbBlockNumber); theNdb->theNdbBlockNumber);
if(theError.code)
return -1;
Uint32 seq = theNdbCon->theNodeSequence; const Uint32 seq = theNdbCon->theNodeSequence;
if(theError.code)
{
goto err4;
}
if(seq == tp->getNodeSequence(nodeId) && send_next_scan(idx, false) == 0) if(seq == tp->getNodeSequence(nodeId) && send_next_scan(idx, false) == 0)
{ {
...@@ -564,6 +568,10 @@ int NdbScanOperation::nextResultImpl(bool fetchAllowed, bool forceSend) ...@@ -564,6 +568,10 @@ int NdbScanOperation::nextResultImpl(bool fetchAllowed, bool forceSend)
if(theError.code == 0) if(theError.code == 0)
setErrorCode(4028); // seq changed = Node fail setErrorCode(4028); // seq changed = Node fail
break; break;
case -4:
err4:
setErrorCode(theError.code);
break;
} }
theNdbCon->theTransactionIsStarted = false; theNdbCon->theTransactionIsStarted = false;
......
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