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

Implement LogicalTimeMetadata

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.5.4
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 2017-02-13, Sharding 2017-03-06

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: