remove unused cluster name in environment. (backport of #59605) (#59681)

removes an unused variable
This commit is contained in:
Howard 2020-07-16 21:25:55 +08:00 committed by GitHub
parent 343053c0a7
commit c0d429863c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -19,7 +19,6 @@
package org.elasticsearch.env; package org.elasticsearch.env;
import org.elasticsearch.cluster.ClusterName;
import org.elasticsearch.common.SuppressForbidden; import org.elasticsearch.common.SuppressForbidden;
import org.elasticsearch.common.io.PathUtils; import org.elasticsearch.common.io.PathUtils;
import org.elasticsearch.common.settings.Setting; import org.elasticsearch.common.settings.Setting;
@ -118,7 +117,6 @@ public class Environment {
pluginsFile = homeFile.resolve("plugins"); pluginsFile = homeFile.resolve("plugins");
List<String> dataPaths = PATH_DATA_SETTING.get(settings); List<String> dataPaths = PATH_DATA_SETTING.get(settings);
final ClusterName clusterName = ClusterName.CLUSTER_NAME_SETTING.get(settings);
if (nodeLocalStorage) { if (nodeLocalStorage) {
if (dataPaths.isEmpty() == false) { if (dataPaths.isEmpty() == false) {
dataFiles = new Path[dataPaths.size()]; dataFiles = new Path[dataPaths.size()];