Skip to content

Commit 0a7d50d

Browse files
authored
Remove version field from CachedBlob (#119047)
1 parent 49ebd42 commit 0a7d50d

File tree

1 file changed

+0
-6
lines changed
  • x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/blob

1 file changed

+0
-6
lines changed

x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/blob/CachedBlob.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77

88
package org.elasticsearch.xpack.searchablesnapshots.cache.blob;
99

10-
import org.elasticsearch.Version;
1110
import org.elasticsearch.common.bytes.BytesArray;
1211
import org.elasticsearch.common.bytes.BytesReference;
13-
import org.elasticsearch.core.UpdateForV9;
1412
import org.elasticsearch.xcontent.ToXContent;
1513
import org.elasticsearch.xcontent.XContentBuilder;
1614

@@ -60,14 +58,10 @@ private CachedBlob(Instant creationTime, String repository, String name, String
6058

6159
@Override
6260
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
63-
@UpdateForV9(owner = UpdateForV9.Owner.SEARCH_FOUNDATIONS)
64-
// we can remove the version field when we no longer need to keep compatibility with <8.12
65-
final int version = Version.CURRENT.id;
6661
builder.startObject();
6762
{
6863
builder.field("type", TYPE);
6964
builder.field(CREATION_TIME_FIELD, creationTime.toEpochMilli());
70-
builder.field("version", version);
7165
builder.field("repository", repository);
7266
builder.startObject("blob");
7367
{

0 commit comments

Comments
 (0)