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

Make ReadThroughCache be driven by a vector clock

    • Fully Compatible
    • Sharding 2020-05-04, Sharding 2020-05-18, Sharding 2020-06-01
    • 0

      As part of this change, the ReadThroughCache's template should be made to accept a separate parameter called "Time" (or alternatively it could be a required method on the "Value" type), which should be a sortable class, containing the vector clock timestamp of each value in the cache.

      The invalidate* suite of methods should be replaced with an advanceTime(const Key& key, Time time) method which cause the in-memory time of the specified key to move forward, so that subsequent call to acquire need to keep loading until the value fetched from the persisted store reaches time.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: