-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Replication
-
Fully Compatible
-
Repl 2023-07-24, Repl 2023-08-07, Repl 2023-08-21
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.