Check for lockFreeReads first in ReplicationCoordinatorImpl

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • Fully Compatible
    • v8.0
    • CAR Team 2024-04-15
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Several methods in ReplicationCoordinatorImpl invariant on (isRSTLLocked() || isLockFreeReadsOp()). The first check is a bit more expensive since we take a spinlock and perform a map lookup, whereas the second just checks an int. We should swap around the checks.

              Assignee:
              Daniel Gomez Ferro
              Reporter:
              Daniel Gomez Ferro
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: