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

Optimize isImplicitlyReplicated() check

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

      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@mongodb.com Colin Stolley
            Reporter:
            colin.stolley@mongodb.com Colin Stolley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: