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

Add handleInternalRequest to ServiceEntryPoint API

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Internal Client
    • Labels:
      None
    • Sprint:
      Sharding 2019-01-28, Sharding 2019-02-11, Sharding 2019-02-25

      Description

      This is meant as an alternative to using DBDirectClient, which sets the 'inDirectClient' flag on the passed-in OperationContext, and so cannot be used to run operations under a session.

      handleInternalRequest will behave similarly to DBDirectClient, except will take (or create) a "fresh" OperationContext and not set the 'inDirectClient' flag on it (though it will grant internal authorization to it).

      This method is essentially syntactic sugar: it should take a BSONObj request, serialize it into an OpMsgRequest, call handleRequest on the OpMsgRequest, and deserialize the response into a BSONObj.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-sharding Backlog - Sharding Team
            Reporter:
            esha.maharishi Esha Maharishi
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: