Update findAndModify and deleteOne to not use two phase protocol if only one shard is targeted

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Sharding NYC
    • Sharding NYC 2023-09-18
    • 2
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-44422 made it so that findAndModify and delete (with limit=1) still work if the two phase protocol is disabled and only the partial shard key is given, as long as only one shard is targeted.

      However, those changes have no effect on master because the two phase protocol will always be used if a partial shard key is given. This ticket should update the code for findAndModify and delete (with limit=1) to not use the two phase protocol if a partial shard key is given and only one shard is targeted.

            Assignee:
            Wenqin Ye
            Reporter:
            Wenqin Ye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: