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

Replace deprecated BatchedCommandRequest getters/setters for WC with the ones provided by OperationContext

    • Catalog and Routing
    • Fully Compatible
    • v7.3, v7.0, v6.0, v5.0
    • CAR Team 2024-02-05, CAR Team 2024-03-18, CAR Team 2024-04-01
    • 9
    • 2

      BatchedCommandRequest is the legacy (pre-IDL) way that write commands were parsed by MongoS and constructed to be sent to MongoD. At that time there wasn't write concern on the OpContext (there wasn't generic parsing of WC on the MongoS to be more specific) so each request had to parse and store it.

      Now that the opCtx has become the "official holder" of WC options, the related methods of BatchedCommandRequests should be retired, as WC values stored in them are no longer guaranteed to be honoured.

       

            Assignee:
            paolo.polato@mongodb.com Paolo Polato
            Reporter:
            m.maher@mongodb.com Moustafa Maher
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: