From: Date: September 14 2006 6:47pm Subject: bk commit into 5.0 tree (lzhou:1.2250) BUG#21799 List-Archive: http://lists.mysql.com/commits/11920 X-Bug: 21799 Message-Id: <200609141647.k8EGl7LC016505@dev3-138.dev.cn.tlan> Below is the list of changes that have just been committed into a local 5.0 repository of root. When root does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2006-09-14 16:47:01+00:00, lzhou@stripped +1 -0 BUG#21799 scan time out report temp failures 4008 ndb/src/ndbapi/NdbScanOperation.cpp@stripped, 2006-09-14 16:46:59+00:00, lzhou@stripped +7 -1 set error code to 4008 when a scan time out # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: lzhou # Host: dev3-138.dev.cn.tlan # Root: /home/zhl/mysql/mysql-5.0/bug21799 --- 1.75/ndb/src/ndbapi/NdbScanOperation.cpp 2006-09-14 16:47:08 +00:00 +++ 1.76/ndb/src/ndbapi/NdbScanOperation.cpp 2006-09-14 16:47:08 +00:00 @@ -505,6 +505,8 @@ int return_code = theNdb->receiveResponse(WAITFOR_SCAN_TIMEOUT); if (return_code == 0 && seq == tp->getNodeSequence(nodeId)) { continue; + } else if(return_code == -1){ + retVal = -1; } else { idx = last; retVal = -2; //return_code; @@ -1377,7 +1379,11 @@ continue; } if(DEBUG_NEXT_RESULT) ndbout_c("return -1"); - setErrorCode(4028); + if(return_code == -1){ + setErrorCode(4008); + } else { + setErrorCode(4028); + } return -1; }