File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/lang-painless/src/main/java/org/elasticsearch/painless Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ public ActionRequestValidationException validate() {
322322 public void readFrom (StreamInput in ) throws IOException {
323323 super .readFrom (in );
324324 script = new Script (in );
325- if (in .getVersion ().onOrBefore (Version .V_6_4_0 )) {
325+ if (in .getVersion ().before (Version .V_6_4_0 )) {
326326 byte scriptContextId = in .readByte ();
327327 assert scriptContextId == 0 ;
328328 } else {
@@ -335,7 +335,7 @@ public void readFrom(StreamInput in) throws IOException {
335335 public void writeTo (StreamOutput out ) throws IOException {
336336 super .writeTo (out );
337337 script .writeTo (out );
338- if (out .getVersion ().onOrBefore (Version .V_6_4_0 )) {
338+ if (out .getVersion ().before (Version .V_6_4_0 )) {
339339 out .writeByte ((byte ) 0 );
340340 } else {
341341 out .writeString (context .name );
You can’t perform that action at this time.
0 commit comments