You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2011/10/17 12:56:34 UTC

svn commit: r1185101 - /incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/sys/CachingTDBMaker.java

Author: andy
Date: Mon Oct 17 10:56:33 2011
New Revision: 1185101

URL: http://svn.apache.org/viewvc?rev=1185101&view=rev
Log:
sync on removela from the cache. ("Better, safer", not "essential")

Modified:
    incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/sys/CachingTDBMaker.java

Modified: incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/sys/CachingTDBMaker.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/sys/CachingTDBMaker.java?rev=1185101&r1=1185100&r2=1185101&view=diff
==============================================================================
--- incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/sys/CachingTDBMaker.java (original)
+++ incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/sys/CachingTDBMaker.java Mon Oct 17 10:56:33 2011
@@ -83,10 +83,12 @@ public final class CachingTDBMaker imple
             return ;
         
         String absPath = location.getDirectoryPath() ;
+        DatasetGraphTDB dsg = cache.get(absPath) ;
         
-        if ( ! cache.containsKey(absPath) )
+        if ( dsg == null )
             return ;
-        log.debug("Remove from dataset cache: "+absPath) ;
+        log.debug("Remove from dataset cache: "+absPath) ;
+        dsg.sync();
         cache.remove(absPath) ;
     }