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

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

    • 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-07
    • 100

      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@mongodb.com Sergi Mateo Bellido
            Reporter:
            sergi.mateo-bellido@mongodb.com Sergi Mateo Bellido
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: