Skip to content

Commit e6ca55b

Browse files
committed
Adjust bwc for stale primary recovery source (#33432)
Relates #33432
1 parent 6bb8170 commit e6ca55b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/RecoverySource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private ExistingStoreRecoverySource(boolean bootstrapNewHistoryUUID) {
142142
}
143143

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

157157
@Override
158158
protected void writeAdditionalFields(StreamOutput out) throws IOException {
159-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
159+
if (out.getVersion().onOrAfter(Version.V_6_5_0)) {
160160
out.writeBoolean(bootstrapNewHistoryUUID);
161161
}
162162
}

0 commit comments

Comments
 (0)