Advertisement
Guest User

Untitled

a guest
Jul 15th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. --- /tmp/simplified.java 2016-07-15 17:13:07.444531838 -0400
  2. +++ MDEV-10314.java 2016-07-15 17:12:21.665653332 -0400
  3. @@ -85,7 +85,7 @@
  4. String url = "jdbc:mysql://" + nodeAddr + "/" + simplified.cfg.dbName;
  5. System.out.println("Getting connection from " + url);
  6. Connection conn = DriverManager.getConnection(url, simplified.cfg.user, simplified.cfg.pass);
  7. - conn.setAutoCommit(false);
  8. + conn.setAutoCommit(true);
  9. conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
  10. Statement stmt = conn.createStatement();
  11. stmt.execute("set session wsrep_sync_wait="+String.valueOf(cfg.wsrep_sync_wait));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement