Skip to content

Commit

Permalink
Fix compilation in MetaDataUpdateSettingsService
Browse files Browse the repository at this point in the history
A backport brought back a symbol name change from a prior change that
was never backported to this branch. This commit fixes this by using the
symbol name already present in the source file.
  • Loading branch information
jasontedor committed May 13, 2020
1 parent 29dbaec commit 1fddcf0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ public ClusterState execute(ClusterState currentState) {
* including updating it to null, indicating that they want to use the default value. In this case, we again
* have to provide an explicit value for the setting to the default (one).
*/
if (indexSettings.get(IndexMetadata.SETTING_NUMBER_OF_REPLICAS) == null) {
indexSettings.put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, 1);
if (indexSettings.get(IndexMetaData.SETTING_NUMBER_OF_REPLICAS) == null) {
indexSettings.put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, 1);
}
Settings finalSettings = indexSettings.build();
indexScopedSettings.validate(
Expand Down

0 comments on commit 1fddcf0

Please sign in to comment.