Optimize isImplicitlyReplicated() check

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0, 7.0.0-rc6
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v7.0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      At https://github.com/10gen/mongo/blob/53837263e1973f51b6960bafb618102d93eb1632/src/mongo/db/namespace_string.cpp#L412 we have a number of tests OR'd together for isImplicitlyReplicated(), but all of them begin with the predicate isConfigDB(). We can short circuit immediately if we begin with that test, since in the common case this will be false.

       

              Assignee:
              Colin Stolley
              Reporter:
              Colin Stolley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: