From 779a7dfac529eeb665ab08310adbb4c019161ed7 Mon Sep 17 00:00:00 2001 From: Victor Pacyna Date: Wed, 17 Jun 2026 17:15:10 +0200 Subject: [PATCH] use transaction isolation again --- src/main/java/com/oltpbenchmark/api/Worker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/oltpbenchmark/api/Worker.java b/src/main/java/com/oltpbenchmark/api/Worker.java index 0989bdab3..e50cbcea6 100644 --- a/src/main/java/com/oltpbenchmark/api/Worker.java +++ b/src/main/java/com/oltpbenchmark/api/Worker.java @@ -84,7 +84,7 @@ public Worker(T benchmark, int id) { try { this.conn = this.benchmark.makeConnection(); this.conn.setAutoCommit(false); - // this.conn.setTransactionIsolation(this.configuration.getIsolationMode()); + this.conn.setTransactionIsolation(this.configuration.getIsolationMode()); } catch (SQLException ex) { throw new RuntimeException("Failed to connect to database", ex); } @@ -425,7 +425,7 @@ protected final void doWork(DatabaseType databaseType, TransactionType transacti } this.conn = this.benchmark.makeConnection(); this.conn.setAutoCommit(false); - // this.conn.setTransactionIsolation(this.configuration.getIsolationMode()); + this.conn.setTransactionIsolation(this.configuration.getIsolationMode()); } catch (SQLException ex) { if (LOG.isDebugEnabled()) { LOG.debug(String.format("%s failed to open a connection...", this));