LUCENE-6447: AssertingLeafReader should delegate getCoreCacheKey()

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1675137 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2015-04-21 15:24:06 +00:00
parent 0e947bb668
commit 77b74fc623
1 changed files with 4 additions and 5 deletions

View File

@ -797,16 +797,15 @@ public class AssertingLeafReader extends FilterLeafReader {
return docsWithField;
}
// this is the same hack as FCInvisible
// we don't change behavior of the reader: just validate the API.
@Override
public Object getCoreCacheKey() {
return cacheKey;
return in.getCoreCacheKey();
}
@Override
public Object getCombinedCoreAndDeletesKey() {
return cacheKey;
return in.getCombinedCoreAndDeletesKey();
}
private final Object cacheKey = new Object();
}