Consolidate logic for checking if a collection is replicated

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • Repl 2023-07-24, Repl 2023-08-07, Repl 2023-08-21
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      NamespaceString::isReplicated, ReplicationCoordinator::canAcceptWritesFor(), and  ReplicationCoordinator::canAcceptWritesFor_UNSAFE() all have overlapping logic to check if a collection is replicated. It is error-prone to have this logic in multiple places in ways that could diverge accidentally.

            Assignee:
            Kaitlin Mahar
            Reporter:
            Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: