Change BWC versions on create index response

This commit changes the BWC versions on the create index response now
that the index name in the response is supported since 5.6.0.

Relates #25139
This commit is contained in:
Jason Tedor 2017-06-09 13:52:08 -04:00
parent 7c8657df0e
commit 8a45c3105f
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ public class CreateIndexResponse extends AcknowledgedResponse {
super.readFrom(in);
readAcknowledged(in);
shardsAcked = in.readBoolean();
if (in.getVersion().onOrAfter(Version.V_6_0_0_alpha3)) {
if (in.getVersion().onOrAfter(Version.V_5_6_0)) {
index = in.readString();
}
}
@ -60,7 +60,7 @@ public class CreateIndexResponse extends AcknowledgedResponse {
super.writeTo(out);
writeAcknowledged(out);
out.writeBoolean(shardsAcked);
if (out.getVersion().onOrAfter(Version.V_6_0_0_alpha3)) {
if (out.getVersion().onOrAfter(Version.V_5_6_0)) {
out.writeString(index);
}
}

View File

@ -33,7 +33,7 @@
---
"Create index":
- skip:
version: " - 5.99.99"
version: " - 5.5.99"
reason: create index response contains index name since 5.6.0
- do: