Return-Path: X-Original-To: apmail-incubator-jena-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-jena-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73D7594B0 for ; Mon, 17 Oct 2011 13:02:01 +0000 (UTC) Received: (qmail 62572 invoked by uid 500); 17 Oct 2011 13:02:01 -0000 Delivered-To: apmail-incubator-jena-commits-archive@incubator.apache.org Received: (qmail 62547 invoked by uid 500); 17 Oct 2011 13:02:01 -0000 Mailing-List: contact jena-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jena-dev@incubator.apache.org Delivered-To: mailing list jena-commits@incubator.apache.org Received: (qmail 62540 invoked by uid 99); 17 Oct 2011 13:02:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2011 13:02:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2011 13:01:59 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 0742723888E4; Mon, 17 Oct 2011 13:01:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1185143 - /incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/sys/CachingTDBMaker.java Date: Mon, 17 Oct 2011 13:01:37 -0000 To: jena-commits@incubator.apache.org From: andy@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111017130138.0742723888E4@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: andy Date: Mon Oct 17 13:01:37 2011 New Revision: 1185143 URL: http://svn.apache.org/viewvc?rev=1185143&view=rev Log: Interaction of DSG close and release. 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=1185143&r1=1185142&r2=1185143&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 13:01:37 2011 @@ -79,16 +79,16 @@ public final class CachingTDBMaker imple @Override public void releaseLocation(Location location) { + // The dataset may already be closed. + if ( location == null /*|| location.isMem()*/ ) return ; String absPath = location.getDirectoryPath() ; DatasetGraphTDB dsg = cache.get(absPath) ; - if ( dsg == null ) return ; log.debug("Remove from dataset cache: "+absPath) ; - dsg.sync(); cache.remove(absPath) ; }