Rely on canAcceptWritesForDatabase to know if the current node is standalone or primary

XMLWordPrintableJSON

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

      The canAcceptWritesForDatabase function doesn't accquire the ReplicationCoordinatorImpl::_mutex.

      The acquisition of this lock as part of this code seems to be the reason why we had a performance drop in this micro-benchmark.

            Assignee:
            Sergi Mateo Bellido
            Reporter:
            Sergi Mateo Bellido
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: