Make ShardRegistry::_getData() async

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.9.0-alpha0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      This will eliminate the cumbersome need to use a thread just to schedule a ShardRegistry lookup (when incorporating RSM changes).

      ie. instead of returning _cache->acquire(...), _getData() can return _cache->acquireAsync(...), and no longer need to take an opCtx (the VectorClock can be obtained via _service instead). Most callers will then just call .get(opCtx) on the result from _getData(). But callers such as the above, which are just scheduling a lookup and aren't interested in the result, don't need to do that.

            Assignee:
            Jaume Moragues (Inactive)
            Reporter:
            Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: