Skip to content

Commit d50f3f9

Browse files
committed
Handle release of 5.6.1
* Add a version constant for 5.6.2 so that the 5.6.1 constant represents the 5.6.1 release and the 5.6.2 constant represents the unreleased 5.6 branch.
1 parent 99be5a0 commit d50f3f9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/src/main/java/org/elasticsearch/Version.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,11 @@ public class Version implements Comparable<Version> {
9393
public static final int V_5_6_0_ID = 5060099;
9494
public static final Version V_5_6_0 = new Version(V_5_6_0_ID, org.apache.lucene.util.Version.LUCENE_6_6_0);
9595
public static final int V_5_6_1_ID = 5060199;
96-
// use proper Lucene constant once we are on a Lucene snapshot that knows about 6.6.1
96+
// TODO use proper Lucene constant once we are on a Lucene snapshot that knows about 6.6.1
9797
public static final Version V_5_6_1 = new Version(V_5_6_1_ID, org.apache.lucene.util.Version.fromBits(6, 6, 1));
98+
public static final int V_5_6_2_ID = 5060299;
99+
// TODO use proper Lucene constant once we are on a Lucene snapshot that knows about 6.6.1
100+
public static final Version V_5_6_2 = new Version(V_5_6_2_ID, org.apache.lucene.util.Version.fromBits(6, 6, 1));
98101
public static final int V_6_0_0_alpha1_ID = 6000001;
99102
public static final Version V_6_0_0_alpha1 =
100103
new Version(V_6_0_0_alpha1_ID, org.apache.lucene.util.Version.LUCENE_7_0_0);
@@ -135,6 +138,8 @@ public static Version fromId(int id) {
135138
return V_6_0_0_alpha2;
136139
case V_6_0_0_alpha1_ID:
137140
return V_6_0_0_alpha1;
141+
case V_5_6_2_ID:
142+
return V_5_6_2;
138143
case V_5_6_1_ID:
139144
return V_5_6_1;
140145
case V_5_6_0_ID:

0 commit comments

Comments
 (0)