Skip to content

Commit d3780ee

Browse files
committed
reserve some versions for 6.x
1 parent 15e3c4d commit d3780ee

File tree

1 file changed

+5
-3
lines changed
  • server/src/main/java/org/elasticsearch/index/translog

1 file changed

+5
-3
lines changed

server/src/main/java/org/elasticsearch/index/translog/Translog.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,8 +1009,9 @@ public Source(BytesReference source, String routing) {
10091009
public static class Index implements Operation {
10101010

10111011
public static final int FORMAT_6_0 = 8; // since 6.0.0
1012-
public static final int FORMAT_NO_PARENT = FORMAT_6_0 + 1; // since 7.0
1013-
public static final int FORMAT_NO_VERSION_TYPE = FORMAT_NO_PARENT + 1; // since 7.0
1012+
public static final int FORMAT_7_0 = FORMAT_6_0 + 5; // reserve some versions for 6.x
1013+
public static final int FORMAT_NO_PARENT = FORMAT_7_0 + 1;
1014+
public static final int FORMAT_NO_VERSION_TYPE = FORMAT_NO_PARENT + 1;
10141015
public static final int SERIALIZATION_FORMAT = FORMAT_NO_VERSION_TYPE;
10151016

10161017
private final String id;
@@ -1184,7 +1185,8 @@ public long getAutoGeneratedIdTimestamp() {
11841185
public static class Delete implements Operation {
11851186

11861187
private static final int FORMAT_6_0 = 4; // 6.0 - *
1187-
public static final int FORMAT_NO_VERSION_TYPE = FORMAT_6_0 + 1; // since 7.0
1188+
private static final int FORMAT_7_0 = FORMAT_6_0 + 5; // reserve some versions for 6.x
1189+
public static final int FORMAT_NO_VERSION_TYPE = FORMAT_7_0 + 1;
11881190
public static final int SERIALIZATION_FORMAT = FORMAT_NO_VERSION_TYPE;
11891191

11901192
private final String type, id;

0 commit comments

Comments
 (0)