List:Commits« Previous MessageNext Message »
From:Jonas Oreland Date:March 31 2009 12:50pm
Subject:bzr push into mysql-5.1-telco-6.2 branch (jonas:2892 to 2893)
View as plain text  
 2893 Jonas Oreland	2009-03-31
      ndb - testTimeout, decrease sleep time to avoid being really really close to edge
modified:
  storage/ndb/test/ndbapi/testTimeout.cpp

 2892 Frazer Clement	2009-03-30
      Bug#43891 : Null bit offset not taken into account.  Fix, testcase and compile
warning cleanup
modified:
  storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
  storage/ndb/test/ndbapi/testNdbApi.cpp
  storage/ndb/test/run-test/daily-basic-tests.txt

=== modified file 'storage/ndb/test/ndbapi/testTimeout.cpp'
--- a/storage/ndb/test/ndbapi/testTimeout.cpp	2006-12-23 19:20:40 +0000
+++ b/storage/ndb/test/ndbapi/testTimeout.cpp	2009-03-31 10:31:01 +0000
@@ -366,14 +366,16 @@ int runBuddyTransNoTimeout(NDBT_Context*
       CHECK(hugoOps.pkInsertRecord(pNdb, recordNo) == 0);
       CHECK(hugoOps.execute_NoCommit(pNdb) == 0);
       
+      int remain = maxSleep;
       for (int i = 0; i < 3; i++){
 	// Perform buddy scan reads
 	CHECK((hugoOps.scanReadRecords(pNdb)) == 0);
 	CHECK(hugoOps.execute_NoCommit(pNdb) == 0); 
 	
-	int sleep = myRandom48(maxSleep);   	
-	ndbout << "Sleeping for " << sleep << " milliseconds" << endl;
-	NdbSleep_MilliSleep(sleep);
+        int sleep = myRandom48(remain);
+        remain = remain - sleep + 1;
+        ndbout << "Sleeping for " << sleep << " milliseconds" <<
endl;
+        NdbSleep_MilliSleep(sleep);
       }
 
       // Expect that transaction has NOT timed-out

Thread
bzr push into mysql-5.1-telco-6.2 branch (jonas:2892 to 2893)Jonas Oreland31 Mar 2009