Skip to content

Commit

Permalink
Support for remote path in reindex api - post backport fix
Browse files Browse the repository at this point in the history
Closes #22913
  • Loading branch information
Vladimir Dolzhenko committed Jun 15, 2018
1 parent c6a5a6d commit babb16d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public RemoteInfo(StreamInput in) throws IOException {
socketTimeout = DEFAULT_SOCKET_TIMEOUT;
connectTimeout = DEFAULT_CONNECT_TIMEOUT;
}
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
pathPrefix = in.readOptionalString();
} else {
pathPrefix = null;
Expand All @@ -123,7 +123,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeTimeValue(socketTimeout);
out.writeTimeValue(connectTimeout);
}
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
out.writeOptionalString(pathPrefix);
}
}
Expand Down

0 comments on commit babb16d

Please sign in to comment.