Adjust BWC version on client features
This commit adjusts the BWC version on client features in master to 6.3.0 after the functionality was backported to the 6.3 branch.
This commit is contained in:
parent
f8785dda9d
commit
3670a2ae05
|
@ -105,7 +105,7 @@ final class ESLoggingHandler extends LoggingHandler {
|
|||
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
|
||||
|
|
|
@ -1121,7 +1121,7 @@ public abstract class TcpTransport extends AbstractLifecycleComponent implements
|
|||
|
||||
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);
|
||||
|
@ -1589,7 +1589,7 @@ public abstract class TcpTransport extends AbstractLifecycleComponent implements
|
|||
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();
|
||||
|
|
Loading…
Reference in New Issue