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

Remove deprecated ComparableDatabaseVersion::_uuidDisambiguatingSequenceNum

    • Fully Compatible
    • Sharding EMEA 2021-08-23
    • 127

      In 5.0 we added a timestamp to each database version so the _uuidDisambiguatingSequenceNum can be now removed. In fact it was used to make UUID comparable locally on every shard, now we can simply use the timestamp associated to the database in order to understand which is the newer one.

      As part of this ticket we should:

      • Remove the ComparableDatabaseVersion::_uuidDisambiguatingSequenceNum class property
      • Implement comparison operators for DatabaseVersion class based on timestamp.
      • Replace usages of ComparableDatabaseVersion outside of the CatalogCache with the new DatabaseVersion comparision operator.
      • Move the ComparableDatabaseVersion class inside the catalog cache since it will be the only place in which we will needed (for forcing catalog cache incremental refreshes).

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: