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

Move localSetTime out of RWConcernDefault and into DistCache::Value

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.4
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 2020-02-24

    Description

      Currently the localSetTime field is part of the persisted state in RWConcernDefault. While it makes sense to persist epoch and setTime, localSetTime will vary across the cluster. It should instead be in DistCache::Value (alongside the _isValid atomic bool) as a const Date_t. This would also allow the code that sets localSetTime in ReadWriteConcernDefaults::Cache::lookup() to instead happen when the DistCache::Value objects are constructed (i.e. make the constructor require the localSetTime date).

      Attachments

        Activity

          People

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: