Skip to content

Commit 5f329bd

Browse files
committed
Internal: remove bwc leftover
This caused some test failures as the readFrom method was not in sync anymore with the writeTo
1 parent 219bb88 commit 5f329bd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/java/org/elasticsearch/action/search/SearchRequest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import org.elasticsearch.ElasticsearchGenerationException;
2323
import org.elasticsearch.ElasticsearchIllegalArgumentException;
24-
import org.elasticsearch.Version;
2524
import org.elasticsearch.action.ActionRequest;
2625
import org.elasticsearch.action.ActionRequestValidationException;
2726
import org.elasticsearch.action.IndicesRequest;
@@ -545,9 +544,6 @@ public Boolean queryCache() {
545544
@Override
546545
public void readFrom(StreamInput in) throws IOException {
547546
super.readFrom(in);
548-
if (in.getVersion().before(Version.V_1_2_0)) {
549-
in.readByte(); // backward comp. for operation threading
550-
}
551547
searchType = SearchType.fromId(in.readByte());
552548

553549
indices = new String[in.readVInt()];

0 commit comments

Comments
 (0)