Rename DiscoveryNodes#smallestNonClientNodeVersion to getSmallestNonClientNodeVersion

This commit is contained in:
javanna 2016-03-30 15:21:06 +02:00 committed by Luca Cavanna
parent 030420768c
commit 2075c7f0a7
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ public class MetaDataCreateIndexService extends AbstractComponent {
if (indexSettingsBuilder.get(SETTING_VERSION_CREATED) == null) {
DiscoveryNodes nodes = currentState.nodes();
final Version createdVersion = Version.smallest(version, nodes.smallestNonClientNodeVersion());
final Version createdVersion = Version.smallest(version, nodes.getSmallestNonClientNodeVersion());
indexSettingsBuilder.put(SETTING_VERSION_CREATED, createdVersion);
}

View File

@ -241,7 +241,7 @@ public class DiscoveryNodes extends AbstractDiffable<DiscoveryNodes> implements
*
* @return the oldest version in the cluster
*/
public Version smallestNonClientNodeVersion() {
public Version getSmallestNonClientNodeVersion() {
return minNonClientNodeVersion;
}