aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-common/src
diff options
context:
space:
mode:
authorLéo Geoffroy <99647462+leo-geoffroy-sonarsource@users.noreply.github.com>2022-04-27 16:16:24 +0200
committersonartech <sonartech@sonarsource.com>2022-05-06 20:02:43 +0000
commit838c48d8e94d0d780582cdfb4429e5cb57615f6f (patch)
tree2e103a3a1370eeaf1cd8bf3eb54998089a5c12b0 /server/sonar-server-common/src
parent63c72abe86c9b5a9fa15a40406ede811128d075c (diff)
downloadsonarqube-838c48d8e94d0d780582cdfb4429e5cb57615f6f.tar.gz
sonarqube-838c48d8e94d0d780582cdfb4429e5cb57615f6f.zip
SONAR-16302 Replace usage of rule for indexing dto (#5853)
Diffstat (limited to 'server/sonar-server-common/src')
-rw-r--r--server/sonar-server-common/src/main/java/org/sonar/server/rule/index/RuleIndexer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/rule/index/RuleIndexer.java b/server/sonar-server-common/src/main/java/org/sonar/server/rule/index/RuleIndexer.java
index f1023fbc91f..80ba06360dd 100644
--- a/server/sonar-server-common/src/main/java/org/sonar/server/rule/index/RuleIndexer.java
+++ b/server/sonar-server-common/src/main/java/org/sonar/server/rule/index/RuleIndexer.java
@@ -83,7 +83,7 @@ public class RuleIndexer implements ResilientIndexer {
try (DbSession dbSession = dbClient.openSession(false)) {
BulkIndexer bulk = createBulkIndexer(bulkSize, IndexingListener.FAIL_ON_ERROR);
bulk.start();
- dbClient.ruleDao().scrollIndexingRules(dbSession, dto -> bulk.add(ruleDocOf(dto).toIndexRequest()));
+ dbClient.ruleDao().selectIndexingRules(dbSession, dto -> bulk.add(ruleDocOf(dto).toIndexRequest()));
bulk.stop();
}
}
@@ -138,7 +138,7 @@ public class RuleIndexer implements ResilientIndexer {
.map(EsQueueDto::getDocId)
.collect(toHashSet(items.size()));
- dbClient.ruleDao().scrollIndexingRulesByKeys(dbSession, ruleUuids,
+ dbClient.ruleDao().selectIndexingRulesByKeys(dbSession, ruleUuids,
r -> {
bulkIndexer.add(ruleDocOf(r).toIndexRequest());
ruleUuids.remove(r.getUuid());