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

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

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

      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@mongodb.com Wenqin Ye
            Reporter:
            wenqin.ye@mongodb.com Wenqin Ye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: