Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27748

Implement LogicalTimeMetadata

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.4
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2017-02-13, Sharding 2017-03-06

      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;
      };
      

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: