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

Optimize isImplicitlyReplicated() check

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc6
    • None
    • None
    • None
    • Fully Compatible
    • v7.0

    Description

      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.

       

      Attachments

        Activity

          People

            colin.stolley@mongodb.com Colin Stolley
            colin.stolley@mongodb.com Colin Stolley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: