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

Implement checkIfWriteConcernCanBeSatisfied

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.7
    • Affects Version/s: 2.7.3
    • Component/s: Replication
    • None

      /**
       * Checks if the current replica set configuration can satisfy the given write concern.
       *
       * Things that are taken into consideration include:
       * 1. If the set has enough members.
       * 2. If the tag exists.
       * 3. If there are enough members for the tag specified.
       */
      virtual Status checkIfWriteConcernCanBeSatisfied(
              const WriteConcernOptions& writeConcern) const = 0;
      

      Note: LegacyReplicationCoordinator::checkIfWriteConcernCanBeSatisfied has a rough implementation that should be replaced.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: