mirror of https://github.com/apache/lucene.git
tweaks
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/branches/newtrunk@925626 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a75151efd5
commit
aa9b85c260
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue