Author: adamw
Date: 2008-09-25 03:16:20 -0400 (Thu, 25 Sep 2008)
New Revision: 171
Modified:
trunk/src/main/org/jboss/envers/synchronization/VersionsSync.java
Log:
Fix (by adepue) for a bug reported in the forums:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178431
Modified: trunk/src/main/org/jboss/envers/synchronization/VersionsSync.java
===================================================================
--- trunk/src/main/org/jboss/envers/synchronization/VersionsSync.java 2008-09-24 16:03:11
UTC (rev 170)
+++ trunk/src/main/org/jboss/envers/synchronization/VersionsSync.java 2008-09-25 07:16:20
UTC (rev 171)
@@ -126,7 +126,8 @@
return;
}
- if (FlushMode.isManualFlushMode(session.getFlushMode())) {
+ // see:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178431
+ if (FlushMode.isManualFlushMode(session.getFlushMode()) || session.isClosed()) {
Session temporarySession = null;
try {
temporarySession = session.getFactory().openTemporarySession();