aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorEric Hartmann <hartmann.eric@gmail.com>2017-07-12 17:47:16 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-08-21 22:44:50 +0200
commit6188784ad17e7bd5ce23a2d24f2c44d25e0c0166 (patch)
tree23350ba390aa3a6cb5a3322d17bd585a57bb6952 /server
parentd4380ccc8fe7783b1b04148c3707e0e93b3bb98e (diff)
downloadsonarqube-6188784ad17e7bd5ce23a2d24f2c44d25e0c0166.tar.gz
sonarqube-6188784ad17e7bd5ce23a2d24f2c44d25e0c0166.zip
Fix too many commits after MAX_BATCH_SIZE is reached
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/issue/IssueStorage.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/IssueStorage.java b/server/sonar-server/src/main/java/org/sonar/server/issue/IssueStorage.java
index 3097b673276..6c02b9c1a0a 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/issue/IssueStorage.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/issue/IssueStorage.java
@@ -121,6 +121,7 @@ public abstract class IssueStorage {
insertChanges(issueChangeMapper, issue);
if (count > BatchSession.MAX_BATCH_SIZE) {
session.commit();
+ count = 0;
}
count++;
}