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

Avoid getting current VectorClock in Variables::generateRuntimeConstants

    • Query Execution
    • 2

      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.

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

              Created:
              Updated:
              Resolved: