]> source.dussan.org Git - sonarqube.git/commitdiff
Enable scroll in db MassUpdate
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 17 Jul 2014 09:01:08 +0000 (11:01 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 17 Jul 2014 09:01:08 +0000 (11:01 +0200)
server/sonar-server/src/main/java/org/sonar/server/db/migrations/BaseDataChange.java

index c659a355dc79af3f69629466c96b8f7672cc1a86..8d36fbe9b83c1058f0251a4cfcf1e457ad3503d9 100644 (file)
@@ -38,6 +38,7 @@ public abstract class BaseDataChange implements DataChange, DatabaseMigration {
     Connection readConnection = null, writeConnection = null;
     try {
       readConnection = db.getDataSource().getConnection();
+      readConnection.setAutoCommit(false);
       writeConnection = db.getDataSource().getConnection();
       writeConnection.setAutoCommit(false);
       Context context = new Context(db, readConnection, writeConnection);