diff options
author | Daniel Schwarz <daniel.schwarz@sonarsource.com> | 2017-03-27 15:15:37 +0200 |
---|---|---|
committer | Daniel Schwarz <bartfastiel@users.noreply.github.com> | 2017-03-30 12:22:01 +0200 |
commit | 1344e8d8b8f8d75129405024adfa566ce3593384 (patch) | |
tree | 50857200757f0b0096d57b1d1029c7736670feb9 /server/sonar-ce | |
parent | 86ac004ff3f96245e969cee199e6134703c5e3a1 (diff) | |
download | sonarqube-1344e8d8b8f8d75129405024adfa566ce3593384.tar.gz sonarqube-1344e8d8b8f8d75129405024adfa566ce3593384.zip |
SONAR-8952 only index rules, when they are updated in db
Diffstat (limited to 'server/sonar-ce')
-rw-r--r-- | server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java | 2 | ||||
-rw-r--r-- | server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java b/server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java index 6f4aee6effe..3b05ff5ee5c 100644 --- a/server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java +++ b/server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java @@ -128,7 +128,6 @@ import org.sonar.server.rule.DefaultRuleFinder; import org.sonar.server.rule.DeprecatedRulesDefinitionLoader; import org.sonar.server.rule.RuleDefinitionsLoader; import org.sonar.server.rule.index.RuleIndex; -import org.sonar.server.rule.index.RuleIndexer; import org.sonar.server.search.EsSearchModule; import org.sonar.server.setting.DatabaseSettingLoader; import org.sonar.server.setting.DatabaseSettingsEnabler; @@ -300,7 +299,6 @@ public class ComputeEngineContainerImpl implements ComputeEngineContainer { Rules.QProfiles.class, // rule - RuleIndexer.class, AnnotationRuleParser.class, XMLRuleParser.class, DefaultRuleFinder.class, diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java b/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java index 3e9a7291fb4..16e2c381e7c 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java +++ b/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java @@ -88,7 +88,7 @@ public class ComputeEngineContainerImplTest { assertThat(picoContainer.getComponentAdapters()) .hasSize( CONTAINER_ITSELF - + 75 // level 4 + + 74 // level 4 + 4 // content of CeConfigurationModule + 5 // content of CeQueueModule + 3 // content of CeHttpModule |