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

Add handleInternalRequest to ServiceEntryPoint API

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Won't Fix
    • None
    • None
    • Internal Client
    • None
    • 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

            backlog-server-sharding Backlog - Sharding Team
            esha.maharishi@mongodb.com Esha Maharishi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: