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

Refactor CatalogCache::_scheduleCollectionRefresh function

    • Sharding 2020-07-13, Sharding 2020-07-27

      The CatalogCache::_scheduleCollectionRefresh logic is implemented using a mix of callbacks and recursion. This makes particularly difficult to follow the execution flow.
      Moreover this code is even more difficult to follow because the result forwarded to the callback is handled by an internal function and not from the main callback logic.

      Once SERVER-49292 is committed this function should be refactored in order to address the outlined issues.

       

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: