diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2020-11-10 14:08:32 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2020-11-10 14:08:32 +0100 |
commit | 4e3c49c6340f32851d943053b3ac03ee1d5aa091 (patch) | |
tree | 56d49019df7ba1014fface66d686775022d80f1d /configserver/src/main/java/com/yahoo/vespa/config/server/application | |
parent | 63d8fc30ec7003e073bd105a0dfa0e9e91a27215 (diff) |
Use separate boolean to indicate disabled status
Diffstat (limited to 'configserver/src/main/java/com/yahoo/vespa/config/server/application')
-rw-r--r-- | configserver/src/main/java/com/yahoo/vespa/config/server/application/ApplicationReindexing.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/application/ApplicationReindexing.java b/configserver/src/main/java/com/yahoo/vespa/config/server/application/ApplicationReindexing.java index baec335b5bc..db9b81d0657 100644 --- a/configserver/src/main/java/com/yahoo/vespa/config/server/application/ApplicationReindexing.java +++ b/configserver/src/main/java/com/yahoo/vespa/config/server/application/ApplicationReindexing.java @@ -72,7 +72,7 @@ public class ApplicationReindexing implements Reindexing { return new ApplicationReindexing(enabled, common, clusters); } - /** Returns whether reindexing should run for this application. */ + @Override public boolean enabled() { return enabled; } @@ -87,9 +87,6 @@ public class ApplicationReindexing implements Reindexing { @Override public Optional<Reindexing.Status> status(String cluster, String documentType) { - if ( ! enabled) - return Optional.empty(); - if (clusters.containsKey(cluster)) { if (clusters.get(cluster).pending().containsKey(documentType)) return Optional.empty(); |