diff options
Diffstat (limited to 'server/sonar-server/src')
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/issue/IssueStorage.java | 3 |
1 files changed, 2 insertions, 1 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 199d8a6d673..1aacf9eb27c 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 @@ -100,10 +100,11 @@ public abstract class IssueStorage { if (issue.isNew()) { doInsert(session, now, issue); insertChanges(issueChangeMapper, issue); + count++; if (count > BatchSession.MAX_BATCH_SIZE) { session.commit(); + count = 0; } - count++; } else if (issue.isChanged()) { toBeUpdated.add(issue); } |