aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-10-07 13:45:01 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-10-07 13:45:01 +0200
commitab1110bb14232145300f03a4e5b295ca406c0dbe (patch)
tree2b4f1706813d42dab85f2075aca2820d97b0115d /server/sonar-server
parente3fb9dc1510b71db198acc8b162a908a0fd78cf4 (diff)
downloadsonarqube-ab1110bb14232145300f03a4e5b295ca406c0dbe.tar.gz
sonarqube-ab1110bb14232145300f03a4e5b295ca406c0dbe.zip
SONAR-5623 fix issues index when calling upload report WS
Diffstat (limited to 'server/sonar-server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/computation/ComputationService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/ComputationService.java b/server/sonar-server/src/main/java/org/sonar/server/computation/ComputationService.java
index a8bd19985ce..b4a800e6d9d 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/computation/ComputationService.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/computation/ComputationService.java
@@ -68,9 +68,11 @@ public class ComputationService implements ServerComponent {
DbSession session = dbClient.openSession(false);
try {
checkThatProjectExistsInDatabase(projectKey, session);
-
dao.insert(session, report);
session.commit();
+
+ analyzeReport(report);
+
} finally {
LOG.debug(String.format("Analysis for project '%s' inserted in the queue", projectKey));
MyBatis.closeQuietly(session);