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

Refactor CatalogCache::_scheduleCollectionRefresh function

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Won't Do
    • None
    • None
    • Catalog, Sharding
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: