From 3de313fb35822afa8f2205998e8fbf12b91b4326 Mon Sep 17 00:00:00 2001 From: tamassoltesz Date: Wed, 4 Dec 2024 20:52:42 +0100 Subject: [PATCH] fix: using right transaction isolation level for mysql in bulkimport --- .../io/supertokens/storage/mysql/BulkImportProxyStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/supertokens/storage/mysql/BulkImportProxyStorage.java b/src/main/java/io/supertokens/storage/mysql/BulkImportProxyStorage.java index d2b07f3..6b001af 100644 --- a/src/main/java/io/supertokens/storage/mysql/BulkImportProxyStorage.java +++ b/src/main/java/io/supertokens/storage/mysql/BulkImportProxyStorage.java @@ -44,7 +44,7 @@ public synchronized Connection getTransactionConnection() throws SQLException, S if (this.connection == null) { Connection con = ConnectionPool.getConnectionForProxyStorage(this); this.connection = new BulkImportProxyConnection(con); - connection.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ); + connection.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED); connection.setAutoCommit(false); } return this.connection;