Commit 59302a3 1 parent 157d277 commit 59302a3 Copy full SHA for 59302a3
File tree 1 file changed +2
-2
lines changed
server/src/main/java/org/opensearch/cluster/metadata
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 {
184
184
this .version = in .readOptionalVLong ();
185
185
this .metadata = in .readMap ();
186
186
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 )) {
188
188
this .context = in .readOptionalWriteable (Context ::new );
189
189
} else {
190
190
this .context = null ;
@@ -248,7 +248,7 @@ public void writeTo(StreamOutput out) throws IOException {
248
248
out .writeOptionalVLong (this .version );
249
249
out .writeMap (this .metadata );
250
250
out .writeOptionalWriteable (dataStreamTemplate );
251
- if (out .getVersion ().onOrAfter (Version .V_3_0_0 )) {
251
+ if (out .getVersion ().onOrAfter (Version .V_2_16_0 )) {
252
252
out .writeOptionalWriteable (context );
253
253
}
254
254
}
You can’t perform that action at this time.
0 commit comments