List:Commits« Previous MessageNext Message »
From:jonas Date:December 15 2006 1:31pm
Subject:bk commit into 5.0 tree (jonas:1.2279) BUG#25090
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of jonas. When jonas 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-12-15 13:31:31+01:00, jonas@stripped +2 -0
  ndb - bug#25090
    add testcase

  ndb/test/ndbapi/testBasic.cpp@stripped, 2006-12-15 13:31:29+01:00, jonas@stripped
+26 -0
    add testcase for bug#25090

  ndb/test/run-test/daily-basic-tests.txt@stripped, 2006-12-15 13:31:29+01:00,
jonas@stripped +4 -0
    add testcase for bug#25090

# 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:	jonas
# Host:	perch.ndb.mysql.com
# Root:	/home/jonas/src/50-work

--- 1.43/ndb/test/run-test/daily-basic-tests.txt	2006-12-15 13:31:34 +01:00
+++ 1.44/ndb/test/run-test/daily-basic-tests.txt	2006-12-15 13:31:34 +01:00
@@ -211,6 +211,10 @@
 cmd: testTimeout
 args: T1 
 
+max-time: 500
+cmd: testBasic
+args: -n Bug25090 T1
+
 # SCAN TESTS
 #
 max-time: 500

--- 1.8/ndb/test/ndbapi/testBasic.cpp	2006-12-15 13:31:34 +01:00
+++ 1.9/ndb/test/ndbapi/testBasic.cpp	2006-12-15 13:31:34 +01:00
@@ -1034,6 +1034,28 @@
   return result;
 }
 
+int
+runBug25090(NDBT_Context* ctx, NDBT_Step* step){
+  
+  Ndb* pNdb = GETNDB(step);
+  NdbDictionary::Dictionary * dict = pNdb->getDictionary();
+
+  HugoOperations ops(*ctx->getTab());
+  
+  int loops = ctx->getNumLoops();
+  const int rows = ctx->getNumRecords();
+  
+  while (loops--)
+  {
+    ops.startTransaction(pNdb);
+    ops.pkReadRecord(pNdb, 1, 1);
+    ops.execute_Commit(pNdb, AO_IgnoreError);
+    sleep(10);
+    ops.closeTransaction(pNdb);
+  }
+  
+  return NDBT_OK;
+}
 
 NDBT_TESTSUITE(testBasic);
 TESTCASE("PkInsert", 
@@ -1276,6 +1298,10 @@
   INITIALIZER(runFillTable);
   INITIALIZER(runPkRead);
   FINALIZER(runClearTable2);
+}
+TESTCASE("Bug25090", 
+	 "Verify what happens when we fill the db" ){
+  STEP(runBug25090);
 }
 NDBT_TESTSUITE_END(testBasic);
 
Thread
bk commit into 5.0 tree (jonas:1.2279) BUG#25090jonas15 Dec