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

Refactor CatalogCache::_scheduleCollectionRefresh function

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Catalog, Sharding
    • Sprint:
      Sharding 2020-07-13, Sharding 2020-07-27

      Description

      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.

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: