Skip to content

Commit

Permalink
Fix BWC issue for PreSyncedFlushResponse
Browse files Browse the repository at this point in the history
I misunderstood how the bwc versions works. If we backport to 5.x, we
need to backport to all supported 6.*.  This commit corrects the BWC
versions for PreSyncedFlushResponse.

Relates #29103
  • Loading branch information
dnhatn committed Mar 20, 2018
1 parent b4af451 commit f938c42
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -561,19 +561,11 @@ static final class PreSyncedFlushResponse extends TransportResponse {
}

boolean includeNumDocs(Version version) {
if (version.major == Version.V_5_6_8.major) {
return version.onOrAfter(Version.V_5_6_8);
} else {
return version.onOrAfter(Version.V_6_2_2);
}
return version.onOrAfter(Version.V_5_6_8);
}

boolean includeExistingSyncId(Version version) {
if (version.major == Version.V_5_6_9.major) {
return version.onOrAfter(Version.V_5_6_9);
} else {
return version.onOrAfter(Version.V_6_3_0);
}
return version.onOrAfter(Version.V_5_6_9);
}

@Override
Expand Down

0 comments on commit f938c42

Please sign in to comment.