[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:
Related
related to SERVER-27099 Consider removing comparison operator... Closed
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

Generated at Thu Feb 08 04:13:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.