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

Avoid getting current VectorClock in Variables::generateRuntimeConstants

    XMLWordPrintableJSON

Details

    • Query Execution
    • 2

    Description

      The VectorClock is protected by a global mutex. When possible, it is preferential to avoid unnecessary calls to this global lock. One caller is the Variables::generateRuntimeConstants function which fetches the ClusterTime even though a query may never access $$CLUSTER_TIME. I believe it is possible to analyze the query for $$CLUSTER_TIME usage like $$USER_ROLES is checked for.

      Attachments

        Activity

          People

            justin.seyster@mongodb.com Justin Seyster
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: