roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ghu...@apache.org
Subject svn commit: r1558708 - /roller/trunk/app/src/main/java/org/apache/roller/weblogger/business/jpa/JPAMediaFileManagerImpl.java
Date Thu, 16 Jan 2014 07:51:52 GMT
Author: ghuber
Date: Thu Jan 16 07:51:52 2014
New Revision: 1558708

URL: http://svn.apache.org/r1558708
Log:
Test fix for violation of foreign key constraint 'ROLLER_MEDIAFILEDIR_ID_FK'.

Modified:
    roller/trunk/app/src/main/java/org/apache/roller/weblogger/business/jpa/JPAMediaFileManagerImpl.java

Modified: roller/trunk/app/src/main/java/org/apache/roller/weblogger/business/jpa/JPAMediaFileManagerImpl.java
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/java/org/apache/roller/weblogger/business/jpa/JPAMediaFileManagerImpl.java?rev=1558708&r1=1558707&r2=1558708&view=diff
==============================================================================
--- roller/trunk/app/src/main/java/org/apache/roller/weblogger/business/jpa/JPAMediaFileManagerImpl.java
(original)
+++ roller/trunk/app/src/main/java/org/apache/roller/weblogger/business/jpa/JPAMediaFileManagerImpl.java
Thu Jan 16 07:51:52 2014
@@ -954,7 +954,10 @@ public class JPAMediaFileManagerImpl imp
             }
             this.strategy.remove(mf);
         }
-
+        
+        // Children
+        roller.flush();
+        
         Set<MediaFileDirectory> dirs = dir.getChildDirectories();
         // Recursive fix ConcurrentModificationException
         List<MediaFileDirectory> concurrentFix = new ArrayList<MediaFileDirectory>();



Mime
View raw message