Commit cc8b2bd2 authored by unknown's avatar unknown

BUG#21799 scan time out report temp failures 4008


ndb/src/ndbapi/NdbScanOperation.cpp:
  set error code to 4008 when a scan time out
parent a8e10dde
...@@ -505,6 +505,8 @@ int NdbScanOperation::nextResultImpl(bool fetchAllowed, bool forceSend) ...@@ -505,6 +505,8 @@ int NdbScanOperation::nextResultImpl(bool fetchAllowed, bool forceSend)
int return_code = theNdb->receiveResponse(WAITFOR_SCAN_TIMEOUT); int return_code = theNdb->receiveResponse(WAITFOR_SCAN_TIMEOUT);
if (return_code == 0 && seq == tp->getNodeSequence(nodeId)) { if (return_code == 0 && seq == tp->getNodeSequence(nodeId)) {
continue; continue;
} else if(return_code == -1){
retVal = -1;
} else { } else {
idx = last; idx = last;
retVal = -2; //return_code; retVal = -2; //return_code;
...@@ -1377,7 +1379,11 @@ NdbIndexScanOperation::next_result_ordered(bool fetchAllowed, ...@@ -1377,7 +1379,11 @@ NdbIndexScanOperation::next_result_ordered(bool fetchAllowed,
continue; continue;
} }
if(DEBUG_NEXT_RESULT) ndbout_c("return -1"); if(DEBUG_NEXT_RESULT) ndbout_c("return -1");
setErrorCode(4028); if(return_code == -1){
setErrorCode(4008);
} else {
setErrorCode(4028);
}
return -1; return -1;
} }
......
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