[STORE] Drop pre 0.90 compression BWC
Pre 0.90 indices need to be upgraded to run with 2.0 we can drop the stored field compression BWC.
This commit is contained in:
parent
b8421e55fd
commit
67e6d623e1
|
@ -500,27 +500,6 @@ public class Store extends AbstractIndexShardComponent implements CloseableIndex
|
|||
return Store.this.codecService;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IndexInput openInput(String name, IOContext context) throws IOException {
|
||||
IndexInput in = super.openInput(name, context);
|
||||
boolean success = false;
|
||||
try {
|
||||
// Only for backward comp. since we now use Lucene codec compression
|
||||
if (name.endsWith(".fdt") || name.endsWith(".tvf")) {
|
||||
Compressor compressor = CompressorFactory.compressor(in);
|
||||
if (compressor != null) {
|
||||
in = compressor.indexInput(in);
|
||||
}
|
||||
}
|
||||
success = true;
|
||||
} finally {
|
||||
if (!success) {
|
||||
IOUtils.closeWhileHandlingException(in);
|
||||
}
|
||||
}
|
||||
return in;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
assert false : "Nobody should close this directory except of the Store itself";
|
||||
|
|
Loading…
Reference in New Issue