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

Revisit cmdObj creation in _clusterWriteWithoutShardKey and remove object if unnecessary.

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Sharding NYC 2022-11-14, Sharding NYC 2023-02-20

      In the function `_createCmdObj` an extra command object is made such that $db can be appended and some fields are removed.

      Toy with unsetting the fields using the requestBuilder instead and reevaluate if setting $db is necessary. It might not be if it is always appended by update/delete/findAndModify commands or the transaction api before it is passed to  _cluster(Query/Write)WithoutShardKey.

            Assignee:
            jason.zhang@mongodb.com Jason Zhang
            Reporter:
            sanika.phanse@mongodb.com Sanika Phanse (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: