aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/main/java/org/sonar/batch/index/EventPersister.java
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-09-08 16:40:43 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-09-08 16:40:43 +0200
commit4d72a556429e94837eca3159b471518ae9221626 (patch)
tree48a5848eb2cd3c9a98c127155dffbd4c6b3df8e6 /sonar-batch/src/main/java/org/sonar/batch/index/EventPersister.java
parent4b65687f7bc58677f6b3845312c3845e0c938600 (diff)
downloadsonarqube-4d72a556429e94837eca3159b471518ae9221626.tar.gz
sonarqube-4d72a556429e94837eca3159b471518ae9221626.zip
SONAR-2579 Creating an event through the web service API leads to a org.sonar.api.Batch.Event exception
Diffstat (limited to 'sonar-batch/src/main/java/org/sonar/batch/index/EventPersister.java')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/index/EventPersister.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/EventPersister.java b/sonar-batch/src/main/java/org/sonar/batch/index/EventPersister.java
index 74835f2ffab..a36255b6065 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/index/EventPersister.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/index/EventPersister.java
@@ -46,7 +46,7 @@ public final class EventPersister {
}
public void deleteEvent(Event event) {
- session.remove(event);
+ session.removeWithoutFlush(event);
session.commit();
}