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() {
super();
incRef();
refCount.set(1);
}
public RefCntRamDirectory(Directory dir) throws IOException {
@ -33,10 +33,8 @@ public class RefCntRamDirectory extends RAMDirectory {
}
public final synchronized void close() {
if (isOpen) {
decRef();
}
}
public boolean isOpen() {
return isOpen;