File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
server/src/main/java/org/opensearch/repositories/blobstore Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4800,12 +4800,12 @@ public boolean isReloadableSettings(RepositoryMetadata newRepositoryMetadata) {
4800
4800
Set <String > allKeys = Stream .concat (newSettings .keySet ().stream (), currentSettings .keySet ().stream ())
4801
4801
.filter (key -> !RELOADABLE_SETTINGS .contains (key ))
4802
4802
.collect (Collectors .toSet ());
4803
- return allKeys .stream ().allMatch (key -> areSettingsEqual (newSettings , currentSettings , key ));
4803
+ return allKeys .stream ().allMatch (key -> isSettingEqual (newSettings , currentSettings , key ));
4804
4804
}
4805
4805
}
4806
4806
4807
- private boolean areSettingsEqual (Settings s1 , Settings s2 , String key ) {
4808
- return s1 . hasValue ( key ) == s2 . hasValue ( key ) && ( s1 . hasValue ( key ) ? Objects .equals (s1 .get (key ), s2 .get (key )) : true );
4807
+ private boolean isSettingEqual (Settings s1 , Settings s2 , String key ) {
4808
+ return Objects .equals (s1 .get (key ), s2 .get (key ));
4809
4809
}
4810
4810
4811
4811
/**
You can’t perform that action at this time.
0 commit comments