Rename DiscoveryNodes#smallestNonClientNodeVersion to getSmallestNonClientNodeVersion
This commit is contained in:
parent
030420768c
commit
2075c7f0a7
|
@ -294,7 +294,7 @@ public class MetaDataCreateIndexService extends AbstractComponent {
|
||||||
|
|
||||||
if (indexSettingsBuilder.get(SETTING_VERSION_CREATED) == null) {
|
if (indexSettingsBuilder.get(SETTING_VERSION_CREATED) == null) {
|
||||||
DiscoveryNodes nodes = currentState.nodes();
|
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);
|
indexSettingsBuilder.put(SETTING_VERSION_CREATED, createdVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -241,7 +241,7 @@ public class DiscoveryNodes extends AbstractDiffable<DiscoveryNodes> implements
|
||||||
*
|
*
|
||||||
* @return the oldest version in the cluster
|
* @return the oldest version in the cluster
|
||||||
*/
|
*/
|
||||||
public Version smallestNonClientNodeVersion() {
|
public Version getSmallestNonClientNodeVersion() {
|
||||||
return minNonClientNodeVersion;
|
return minNonClientNodeVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue