Fix comment regarding removal of requiresKeystore

The requiresKeystore flag was removed from PluginInfo in 6.3.0. This
commit fixes a pair of code comments that incorrectly refer to this
version as 7.0.0.
This commit is contained in:
Jason Tedor 2018-03-12 14:17:56 -04:00
parent f0164cc954
commit 6088af5887

View File

@ -115,7 +115,7 @@ public class PluginInfo implements Writeable, ToXContentObject {
} }
if (in.getVersion().onOrAfter(Version.V_6_0_0_beta2) && in.getVersion().before(Version.V_6_3_0)) { if (in.getVersion().onOrAfter(Version.V_6_0_0_beta2) && in.getVersion().before(Version.V_6_3_0)) {
/* /*
* Elasticsearch versions in [6.0.0-beta2, 7.0.0) allowed plugins to specify that they require the keystore and this was * Elasticsearch versions in [6.0.0-beta2, 6.3.0) allowed plugins to specify that they require the keystore and this was
* serialized into the plugin info. Therefore, we have to read and ignore this value from the stream. * serialized into the plugin info. Therefore, we have to read and ignore this value from the stream.
*/ */
in.readBoolean(); in.readBoolean();
@ -140,7 +140,7 @@ public class PluginInfo implements Writeable, ToXContentObject {
} }
if (out.getVersion().onOrAfter(Version.V_6_0_0_beta2) && out.getVersion().before(Version.V_6_3_0)) { if (out.getVersion().onOrAfter(Version.V_6_0_0_beta2) && out.getVersion().before(Version.V_6_3_0)) {
/* /*
* Elasticsearch versions in [6.0.0-beta2, 7.0.0) allowed plugins to specify that they require the keystore and this was * Elasticsearch versions in [6.0.0-beta2, 6.3.0) allowed plugins to specify that they require the keystore and this was
* serialized into the plugin info. Therefore, we have to write out a value for this boolean. * serialized into the plugin info. Therefore, we have to write out a value for this boolean.
*/ */
out.writeBoolean(false); out.writeBoolean(false);