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

Move localSetTime out of RWConcernDefault and into DistCache::Value

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2020-02-24

      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).

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

              Created:
              Updated:
              Resolved: