mirror of
https://github.com/apache/lucene.git
synced 2025-02-07 02:28:49 +00:00
LUCENE-4055: turn cache back on
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4055@1338985 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d65ed29a43
commit
3f3a3594a5
@ -383,8 +383,9 @@ public final class SegmentInfo implements Cloneable {
|
||||
|
||||
public List<String> files() throws IOException {
|
||||
final long fisVersion = fieldInfosVersion;
|
||||
// nocommit: fix this once we detangle
|
||||
if (true /* fisVersion != (fieldInfosVersion = getFieldInfos().getVersion()) */) {
|
||||
// nocommit
|
||||
FieldInfos infos = getFieldInfos();
|
||||
if (infos instanceof MutableFieldInfos && fisVersion != (fieldInfosVersion = ((MutableFieldInfos)infos).getVersion())) {
|
||||
clearFilesCache(); // FIS has modifications - need to recompute
|
||||
} else if (files != null) {
|
||||
// Already cached:
|
||||
|
Loading…
x
Reference in New Issue
Block a user