[SERVER-27748] Implement LogicalTimeMetadata Created: 19/Jan/17  Updated: 05/Apr/17  Resolved: 27/Feb/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.5.4

Type: Task Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2017-02-13, Sharding 2017-03-06
Participants:

 Description   

Implement class that carries clusterTime and an SHA1 signature

/**
 * Format:
 * logicalTime: {
 *     clusterTime: <highest known valid LogicalTime_MEM>
 * }
 */
class LogicalTimeMetadata {
public:
    explicit LogicalTimeMetadata(SignedLogicalTime time);
 
    static StatusWith<LogicalTimeMetadata> readFromMetadata(const BSONElement& metadataElem);
    void writeToMetadata(BSONObjBuilder* metadataBuilder) const;
 
    SignedLogicalTime getTime();
 
private:
    SignedLogicalTime _clusterTime;
};



 Comments   
Comment by Githook User [ 27/Feb/17 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-27748 Implement LogicalTimeMetadata
Branch: master
https://github.com/mongodb/mongo/commit/2e68e8bf05fd7c6cb94b82fcfd0fe237c9f7ccb8

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