]> source.dussan.org Git - sonarqube.git/commitdiff
fix possible dead lock on table CE_SCANNER_CONTEXT on MySQL 2266/head
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 19 Jul 2017 12:20:49 +0000 (14:20 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 19 Jul 2017 12:20:49 +0000 (14:20 +0200)
server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistScannerContextStep.java

index c9bddaea9c1fb00e944502ee572f85936fbddd4a..4f64993cb6e5663c824440b87c7a750e486dc028 100644 (file)
@@ -53,6 +53,7 @@ public class PersistScannerContextStep implements ComputationStep {
           // for total reliability, we rather delete the existing row as we don't want to assume the content
           // consistent with the report
           dbClient.ceScannerContextDao().deleteByUuids(dbSession, singleton(ceTask.getUuid()));
+          dbSession.commit();
           dbClient.ceScannerContextDao().insert(dbSession, ceTask.getUuid(), logsIterator);
           dbSession.commit();
         }