[SERVER-26882] Make OpTime == always include term Created: 02/Nov/16 Updated: 06/Dec/22 Resolved: 21/Mar/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 3.3.15, 3.4.0-rc1 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Scott Hernandez (Inactive) | Assignee: | Backlog - Replication Team |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Replication
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Participants: | |||||||||
| Description |
|
There are many places where the default operator== isn't correct in that a missing term should result in false, not true. |
| Comments |
| Comment by Spencer Brody (Inactive) [ 21/Mar/17 ] |
|
The only time operator== doesn't consider term is if either of the optimes has a term of -1, which is important for handling protocol version changes |