Avoid getting current VectorClock in Variables::generateRuntimeConstants

XMLWordPrintableJSON

    • Query Execution
    • 2
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Mark Benvenuto
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: