Skip to content

Commit

Permalink
Change version in PluginInfo to V_2_19_0 after backport to 2.x merged (
Browse files Browse the repository at this point in the history
…opensearch-project#16947)

Signed-off-by: Craig Perkins <cwperx@amazon.com>
  • Loading branch information
cwperks authored Jan 4, 2025
1 parent 845fbfa commit c0f7806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/main/java/org/opensearch/plugins/PluginInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public PluginInfo(final StreamInput in) throws IOException {
this.customFolderName = in.readString();
this.extendedPlugins = in.readStringList();
this.hasNativeController = in.readBoolean();
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
if (in.getVersion().onOrAfter(Version.V_2_19_0)) {
this.optionalExtendedPlugins = in.readStringList();
} else {
this.optionalExtendedPlugins = new ArrayList<>();
Expand Down Expand Up @@ -250,7 +250,7 @@ This works for currently supported range notations (=,~)
}
out.writeStringCollection(extendedPlugins);
out.writeBoolean(hasNativeController);
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
if (out.getVersion().onOrAfter(Version.V_2_19_0)) {
out.writeStringCollection(optionalExtendedPlugins);
}
}
Expand Down

0 comments on commit c0f7806

Please sign in to comment.