List:Commits« Previous MessageNext Message »
From:Martin Zaun Date:October 3 2010 4:54am
Subject:bzr push into mysql-5.1-telco-7.1 branch (martin.zaun:3861 to 3862)
View as plain text  
 3862 Martin Zaun	2010-10-02 [merge]
      crund - cosmetics

    modified:
      storage/ndb/test/crund/tws_benchmark/src/Main.java
 3861 Martin Zaun	2010-10-02 [merge]
      crund - added LockMode property to TWS benchmark

    modified:
      storage/ndb/test/crund/tws_benchmark/nbproject/configs_sample/server-dbg.properties
      storage/ndb/test/crund/tws_benchmark/run.properties.sample
      storage/ndb/test/crund/tws_benchmark/src/Main.java
=== modified file 'storage/ndb/test/crund/tws_benchmark/src/Main.java'
--- a/storage/ndb/test/crund/tws_benchmark/src/Main.java	2010-10-03 04:32:37 +0000
+++ b/storage/ndb/test/crund/tws_benchmark/src/Main.java	2010-10-03 04:52:07 +0000
@@ -370,12 +370,7 @@ public class Main
         assert (upd0 == null);
         assert (del0 == null);
 
-        out.print("compiling jdbc statements ...");
-        out.flush();
-
-        final String sqlIns0 = "INSERT INTO mytable (c0, c1, c2, c3, c5, c6, c7, c8) VALUES (?, ?, ?, ?, ?, ?, ?, ?)";
-        ins0 = connection.prepareStatement(sqlIns0);
-
+        out.print("using lock mode for reads ...    [ok: ");
         final String lm;
         switch (lockMode) {
         case READ_COMMITTED:
@@ -391,6 +386,13 @@ public class Main
             lm = "";
             assert false;
         }
+        out.println("SELECT" + lm + ";]");
+
+        out.print("compiling jdbc statements ...");
+        out.flush();
+
+        final String sqlIns0 = "INSERT INTO mytable (c0, c1, c2, c3, c5, c6, c7, c8) VALUES (?, ?, ?, ?, ?, ?, ?, ?)";
+        ins0 = connection.prepareStatement(sqlIns0);
 
         final String sqlSel0 = ("SELECT * FROM mytable where c0=?" + lm);
         sel0 = connection.prepareStatement(sqlSel0);


Attachment: [text/bzr-bundle] bzr/martin.zaun@oracle.com-20101003045325-g1kko004shqagcb3.bundle
Thread
bzr push into mysql-5.1-telco-7.1 branch (martin.zaun:3861 to 3862) Martin Zaun3 Oct