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:
Robert Muir 2012-05-16 03:26:33 +00:00
parent d65ed29a43
commit 3f3a3594a5

View File

@ -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: