Skip to content

Commit

Permalink
Adjust PreSyncedFlushResponse bwc versions
Browse files Browse the repository at this point in the history
We discussed and agreed to include the synced-flush change in 6.3.0+ but
not in 5.6.9. We will re-evaluate the urgency and importance of the
issue then decide which versions that the change should be included.
  • Loading branch information
dnhatn committed Mar 21, 2018
1 parent 4cbd2db commit 5c20cd5
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -561,11 +561,14 @@ static final class PreSyncedFlushResponse extends TransportResponse {
}

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

boolean includeExistingSyncId(Version version) {
return version.onOrAfter(Version.V_5_6_9);
return version.onOrAfter(Version.V_6_3_0);
}

@Override
Expand Down

0 comments on commit 5c20cd5

Please sign in to comment.