Remove ScopedSetRouterService from UserCacheInvalidator

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2025-10-13
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We introduced a RAII object (ScopedSetRouterService) to temporarily switch the Service to a RouterService associated with the opCtx when initializing the UserCacheInvalidator.

      This was originally done to initialize the UserCacheInvalidator for MongoD instances acting as routers. Since this is no longer the case (see SERVER-105113), we no longer need to change the service. The only remaining usage is in MongoS, where the Service is already a RouterService.

      Let's remove this dead code.

            Assignee:
            Pol Pinol
            Reporter:
            Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: