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

Audit and replace all old-style update calls with new update implementation

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Write Ops
    • Query Execution

      There are presently code paths in which upsert takes exclusive database locks (e.g., SERVER-45955). It looks like there is also an update helper that takes an exclusive database lock for upsert. This update helper is currently used in various places, e.g., during oplog application, as well as in the dbhelpers upsert and putSingleton methods.

      Any usages of this old-style update() method should be replaced with an equivalent write_ops_exec based implementation, to avoid the costly exclusive database lock and to guarantee consistency of implementation.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            maria.vankeulen@mongodb.com Maria van Keulen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: