aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-07-19 14:20:49 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-07-19 14:20:49 +0200
commitd5ed6c54471951326e987953c51f52f7e6433e37 (patch)
tree3706a5a67a90abb5802eb25a2350d4a48b489d1d /server/sonar-server
parent4790b1d7341f20077fc0d4316d3f3732a0090066 (diff)
downloadsonarqube-d5ed6c54471951326e987953c51f52f7e6433e37.tar.gz
sonarqube-d5ed6c54471951326e987953c51f52f7e6433e37.zip
fix possible dead lock on table CE_SCANNER_CONTEXT on MySQL
Diffstat (limited to 'server/sonar-server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistScannerContextStep.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistScannerContextStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistScannerContextStep.java
index c9bddaea9c1..4f64993cb6e 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistScannerContextStep.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistScannerContextStep.java
@@ -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();
}