Skip to content

Commit

Permalink
Adjust BWC version on client features
Browse files Browse the repository at this point in the history
This commit adjusts the BWC version on client features in 6.x to 6.3.0
after the functionality was backported to the 6.3 branch.
  • Loading branch information
jasontedor committed Jun 1, 2018
1 parent b194568 commit 0215c4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ else if (readableBytes >= TcpHeader.HEADER_SIZE) {
context.readHeaders(in);
}
// now we decode the features
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
if (in.getVersion().onOrAfter(Version.V_6_3_0)) {
in.readStringArray();
}
// now we can decode the action name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ private void sendRequestToChannel(final DiscoveryNode node, final TcpChannel cha

stream.setVersion(version);
threadPool.getThreadContext().writeTo(stream);
if (version.onOrAfter(Version.V_6_4_0)) {
if (version.onOrAfter(Version.V_6_3_0)) {
stream.writeStringArray(features);
}
stream.writeString(action);
Expand Down Expand Up @@ -1519,7 +1519,7 @@ protected String handleRequest(TcpChannel channel, String profileName, final Str
int messageLengthBytes, Version version, InetSocketAddress remoteAddress, byte status)
throws IOException {
final Set<String> features;
if (version.onOrAfter(Version.V_6_4_0)) {
if (version.onOrAfter(Version.V_6_3_0)) {
features = Collections.unmodifiableSet(new TreeSet<>(Arrays.asList(stream.readStringArray())));
} else {
features = Collections.emptySet();
Expand Down

0 comments on commit 0215c4c

Please sign in to comment.