File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
server/src/main/java/org/elasticsearch/index/translog Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments