Skip to content

Commit

Permalink
Adjust bwc for stale primary recovery source (#33432)
Browse files Browse the repository at this point in the history
Relates #33432
  • Loading branch information
dnhatn committed Sep 10, 2018
1 parent 6bb8170 commit e6ca55b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -142,7 +142,7 @@ private ExistingStoreRecoverySource(boolean bootstrapNewHistoryUUID) {
}

private ExistingStoreRecoverySource(StreamInput in) throws IOException {
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (in.getVersion().onOrAfter(Version.V_6_5_0)) {
bootstrapNewHistoryUUID = in.readBoolean();
} else {
bootstrapNewHistoryUUID = false;
Expand All @@ -156,7 +156,7 @@ public void addAdditionalFields(XContentBuilder builder, Params params) throws I

@Override
protected void writeAdditionalFields(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (out.getVersion().onOrAfter(Version.V_6_5_0)) {
out.writeBoolean(bootstrapNewHistoryUUID);
}
}
Expand Down

0 comments on commit e6ca55b

Please sign in to comment.