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

The isStandaloneOrPrimary flag from the PreWriteFilter should be computed once per operation

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding EMEA 2022-02-21

      We were computing the value of the flag every time we were reacquiring the locks (i.e. after a yield). However this is not really needed because:

      • If the node was a primary and stepped down, the ongoing operation will be aborted.
      • It is not possible for a secondary to step up without completing first the oplog catch-up.

            Assignee:
            sergi.mateo-bellido@mongodb.com Sergi Mateo Bellido
            Reporter:
            sergi.mateo-bellido@mongodb.com Sergi Mateo Bellido
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: