Skip to content

Commit cffdd8a

Browse files
committed
reorder params
1 parent d1b5c62 commit cffdd8a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

server/src/main/java/org/elasticsearch/cluster/coordination/ElasticsearchNodeCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static LucenePersistedStateFactory createLucenePersistedStateFactory(Path
7878
}
7979

8080
String nodeId = nodeMetaData.nodeId();
81-
return new LucenePersistedStateFactory(dataPaths, nodeId, true, namedXContentRegistry, BigArrays.NON_RECYCLING_INSTANCE);
81+
return new LucenePersistedStateFactory(dataPaths, nodeId, namedXContentRegistry, BigArrays.NON_RECYCLING_INSTANCE, true);
8282
}
8383

8484
public static ClusterState clusterState(Environment environment, LucenePersistedStateFactory.OnDiskState onDiskState) {

server/src/main/java/org/elasticsearch/gateway/LucenePersistedStateFactory.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,21 +123,21 @@ public class LucenePersistedStateFactory {
123123

124124
private final Path[] dataPaths;
125125
private final String nodeId;
126-
private final boolean preserveUnknownCustoms;
127126
private final NamedXContentRegistry namedXContentRegistry;
128127
private final BigArrays bigArrays;
128+
private final boolean preserveUnknownCustoms;
129129

130130
public LucenePersistedStateFactory(NodeEnvironment nodeEnvironment, NamedXContentRegistry namedXContentRegistry, BigArrays bigArrays) {
131-
this(nodeEnvironment.nodeDataPaths(), nodeEnvironment.nodeId(), false, namedXContentRegistry, bigArrays);
131+
this(nodeEnvironment.nodeDataPaths(), nodeEnvironment.nodeId(), namedXContentRegistry, bigArrays, false);
132132
}
133133

134-
public LucenePersistedStateFactory(Path[] dataPaths, String nodeId, boolean preserveUnknownCustoms,
135-
NamedXContentRegistry namedXContentRegistry, BigArrays bigArrays) {
134+
public LucenePersistedStateFactory(Path[] dataPaths, String nodeId, NamedXContentRegistry namedXContentRegistry, BigArrays bigArrays,
135+
boolean preserveUnknownCustoms) {
136136
this.dataPaths = dataPaths;
137137
this.nodeId = nodeId;
138-
this.preserveUnknownCustoms = preserveUnknownCustoms;
139138
this.namedXContentRegistry = namedXContentRegistry;
140139
this.bigArrays = bigArrays;
140+
this.preserveUnknownCustoms = preserveUnknownCustoms;
141141
}
142142

143143
public String getNodeId() {

0 commit comments

Comments
 (0)