Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove casting

  • Loading branch information...
commit bfb4666b3d70bd6edcac29a805a1d7c65b1f54e2 1 parent bcd582b
@kimchy kimchy authored
View
3  modules/elasticsearch/src/main/java/org/elasticsearch/index/percolator/PercolatorService.java
@@ -43,7 +43,6 @@
import org.elasticsearch.index.settings.IndexSettings;
import org.elasticsearch.index.shard.IndexShardState;
import org.elasticsearch.index.shard.service.IndexShard;
-import org.elasticsearch.index.shard.service.InternalIndexShard;
import org.elasticsearch.indices.IndicesLifecycle;
import org.elasticsearch.indices.IndicesService;
@@ -197,7 +196,7 @@ private IndexService percolatorIndexService() {
// add a listener that will update based on changes done to the _percolate index
// the relevant indices with loaded queries
if (indexShard.shardId().index().name().equals(INDEX_NAME)) {
- ((InternalIndexShard) indexShard).indexingService().addListener(realTimePercolatorOperationListener);
+ indexShard.indexingService().addListener(realTimePercolatorOperationListener);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.