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

Implement a DatabaseVersion class and add it to the DatabaseType

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.7.2
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 2018-01-29, Sharding 2018-02-12

    Description

      Should ideally be implemented using IDL for parsing and serialization. For the value-add functionality such as incrementing the version, it is alright to create a class which inherits the generated IDL parser class.

      The DatabaseVersion should have 2 fields:

      1. uuid - UUID, indicating the incarnation of the database
      2. version - Int32 which gets bumped whenever movePrimary is called

      The DatabaseVersion class should be made to accept the UUID and version as part of the constructor and should only expose an increment method.

      This ticket should also include work to assign the DatabaseVersion whenever a new DatabaseType entry is created.

      Attachments

        Activity

          People

            kaitlin.mahar@mongodb.com Kaitlin Mahar
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: