mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 14:54:56 +00:00
Use IndexModule.getSettings() to get the settings.
Original commit: elastic/x-pack-elasticsearch@770f859b6c
This commit is contained in:
parent
afb5cc0d08
commit
b43f81a15c
@ -192,12 +192,7 @@ public class ShieldPlugin extends Plugin {
|
||||
}
|
||||
if (clientMode == false) {
|
||||
module.registerQueryCache(ShieldPlugin.OPT_OUT_QUERY_CACHE, OptOutQueryCache::new);
|
||||
module.addIndexEventListener(new IndexEventListener() {
|
||||
@Override
|
||||
public void afterIndexCreated(IndexService indexService) {
|
||||
failIfShieldQueryCacheIsNotActive(indexService.getIndexSettings().getSettings(), false);
|
||||
}
|
||||
});
|
||||
failIfShieldQueryCacheIsNotActive(module.getSettings(), false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user