[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:
Simon Willnauer 2014-11-07 12:43:15 +01:00
parent b8421e55fd
commit 67e6d623e1
1 changed files with 0 additions and 21 deletions

View File

@ -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";