db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r593324 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/client/MultiThreadSubmitter.java
Date Thu, 08 Nov 2007 21:18:52 GMT
Author: djd
Date: Thu Nov  8 13:18:52 2007
New Revision: 593324

URL: http://svn.apache.org/viewvc?rev=593324&view=rev
Log:
Have the order entry MultiThreadSubmitter clear the transaction counts for its submitters
before starting a run. Thus ensuring the submitter's counts represent a single run.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/client/MultiThreadSubmitter.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/client/MultiThreadSubmitter.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/client/MultiThreadSubmitter.java?rev=593324&r1=593323&r2=593324&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/client/MultiThreadSubmitter.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/client/MultiThreadSubmitter.java
Thu Nov  8 13:18:52 2007
@@ -33,6 +33,9 @@
      * transactions will be executed. The time returned
      * will be the time to execute all the transactions.
      * 
+     * Each submitter will have its clearTransactionCount called
+     * before the run.
+     * 
      * @param submitters Submitters to use.
      * @param displays Displays for each submitter.
      * If null then null will be passed into each transaction
@@ -47,6 +50,7 @@
 
         Thread[] threads = new Thread[submitters.length];
         for (int i = 0; i < submitters.length; i++) {
+            submitters[i].clearTransactionCount();
             Object displayData = displays == null ? null : displays[i];
             threads[i] = newThread(i, submitters[i], displayData, count);
         }



Mime
View raw message