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) {
48004800 Set <String > allKeys = Stream .concat (newSettings .keySet ().stream (), currentSettings .keySet ().stream ())
48014801 .filter (key -> !RELOADABLE_SETTINGS .contains (key ))
48024802 .collect (Collectors .toSet ());
4803- return allKeys .stream ().allMatch (key -> areSettingsEqual (newSettings , currentSettings , key ));
4803+ return allKeys .stream ().allMatch (key -> isSettingEqual (newSettings , currentSettings , key ));
48044804 }
48054805 }
48064806
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 ));
48094809 }
48104810
48114811 /**
You can’t perform that action at this time.
0 commit comments