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

XMLWordPrintableJSON

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

      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
            Reporter:
            Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: