git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/branches/newtrunk@925626 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2010-03-20 15:15:34 +00:00
parent a75151efd5
commit aa9b85c260
1 changed files with 8 additions and 10 deletions

View File

@ -12,7 +12,7 @@ public class RefCntRamDirectory extends RAMDirectory {
public RefCntRamDirectory() { public RefCntRamDirectory() {
super(); super();
incRef(); refCount.set(1);
} }
public RefCntRamDirectory(Directory dir) throws IOException { public RefCntRamDirectory(Directory dir) throws IOException {
@ -33,9 +33,7 @@ public class RefCntRamDirectory extends RAMDirectory {
} }
public final synchronized void close() { public final synchronized void close() {
if (isOpen) { decRef();
decRef();
}
} }
public boolean isOpen() { public boolean isOpen() {