File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
server/src/main/java/org/opensearch/cluster/metadata Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ public ComposableIndexTemplate(StreamInput in) throws IOException {
184184 this .version = in .readOptionalVLong ();
185185 this .metadata = in .readMap ();
186186 this .dataStreamTemplate = in .readOptionalWriteable (DataStreamTemplate ::new );
187- if (in .getVersion ().onOrAfter (Version .V_3_0_0 )) {
187+ if (in .getVersion ().onOrAfter (Version .V_2_16_0 )) {
188188 this .context = in .readOptionalWriteable (Context ::new );
189189 } else {
190190 this .context = null ;
@@ -248,7 +248,7 @@ public void writeTo(StreamOutput out) throws IOException {
248248 out .writeOptionalVLong (this .version );
249249 out .writeMap (this .metadata );
250250 out .writeOptionalWriteable (dataStreamTemplate );
251- if (out .getVersion ().onOrAfter (Version .V_3_0_0 )) {
251+ if (out .getVersion ().onOrAfter (Version .V_2_16_0 )) {
252252 out .writeOptionalWriteable (context );
253253 }
254254 }
You can’t perform that action at this time.
0 commit comments