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

Verify canAcceptWritesForDatabase() is called while the caller holds the global lock

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.4
    • Affects Version/s: None
    • Component/s: Replication
    • Fully Compatible
    • Repl 2017-03-06

      The comment of canAcceptWritesForDatabase says:

      * NOTE: This function can only be meaningfully called while the caller holds the global
      * lock in some mode other than MODE_NONE.
      

      We should pass OperationContext into the function and verify the synchronization rule is satisfied.

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: