Skip to content

Commit c0f7806

Browse files
authored
Change version in PluginInfo to V_2_19_0 after backport to 2.x merged (#16947)
Signed-off-by: Craig Perkins <cwperx@amazon.com>
1 parent 845fbfa commit c0f7806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/plugins/PluginInfo.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public PluginInfo(final StreamInput in) throws IOException {
215215
this.customFolderName = in.readString();
216216
this.extendedPlugins = in.readStringList();
217217
this.hasNativeController = in.readBoolean();
218-
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
218+
if (in.getVersion().onOrAfter(Version.V_2_19_0)) {
219219
this.optionalExtendedPlugins = in.readStringList();
220220
} else {
221221
this.optionalExtendedPlugins = new ArrayList<>();
@@ -250,7 +250,7 @@ This works for currently supported range notations (=,~)
250250
}
251251
out.writeStringCollection(extendedPlugins);
252252
out.writeBoolean(hasNativeController);
253-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
253+
if (out.getVersion().onOrAfter(Version.V_2_19_0)) {
254254
out.writeStringCollection(optionalExtendedPlugins);
255255
}
256256
}

0 commit comments

Comments
 (0)