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

relax locking mode in applyOps when applying CRUD-only ops non-atomically

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.9, 3.5.12
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • Repl 2017-08-21

      With SERVER-29802, we can run multiple applyOps on the same server concurrently if we use

      {allowAtomic: false}

      and apply only CRUD. In this mode, applyOps() uses MODE_X to lock the database before calling applyOperation_inlock(). This does not take advantage of storage engines that support document level concurrency.

      This ticket proposes to relax the locking rules in applyOps() to use MODE_IX instead of MODE_X when applying CRUD-only workloads non-atomically.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: