[SERVER-19905] Change optime "term" field to "t", and consolidate parsing Created: 12/Aug/15 Updated: 05/Mar/18 Resolved: 17/Sep/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.1.9 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Scott Hernandez (Inactive) | Assignee: | Matt Dannenberg |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Sprint: | RPL 9 (09/18/15) | ||||||||
| Participants: | |||||||||
| Description |
|
In OpTime we persist term as the "t" field, but in other places it uses "term". We should change all places we use to "term" and put all parsing/validation into the OpTime class. For ref: https://github.com/mongodb/mongo/blob/master/src/mongo/bson/util/bson_extract.cpp#L108 |
| Comments |
| Comment by Githook User [ 17/Sep/15 ] |
|
Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}Message: |
| Comment by Githook User [ 17/Sep/15 ] |
|
Author: {u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}Message: |
| Comment by Siyuan Zhou [ 12/Aug/15 ] |
|
I'll also rename -1 to kUninitializedTerm and 0 to kInitialTerm. In |