Created
July 15, 2016 21:16
-
-
Save nirbhayc/af53be2cf318ceb96fdc4ec7041a6b3d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /tmp/simplified.java 2016-07-15 17:13:07.444531838 -0400 | |
+++ MDEV-10314.java 2016-07-15 17:12:21.665653332 -0400 | |
@@ -85,7 +85,7 @@ | |
String url = "jdbc:mysql://" + nodeAddr + "/" + simplified.cfg.dbName; | |
System.out.println("Getting connection from " + url); | |
Connection conn = DriverManager.getConnection(url, simplified.cfg.user, simplified.cfg.pass); | |
- conn.setAutoCommit(false); | |
+ conn.setAutoCommit(true); | |
conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED); | |
Statement stmt = conn.createStatement(); | |
stmt.execute("set session wsrep_sync_wait="+String.valueOf(cfg.wsrep_sync_wait)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment