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

AutoGetCollectionForReadLockFree::_originalReadSource is unused

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • ALL

      In AutoGetCollectionForReadLockFree we can change the RecoveryUnit's read source if we are on a secondary, so we are storing the original read source presumably in order to restore it when the AutoGetCollectionForReadLockFree is destroyed, however it's not used again after initialization.

      I think previous versions of the Lock free auto getters didn't restore it either, so this might be fine, it's just a bit deceiving.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            daniel.gomezferro@mongodb.com Daniel Gomez Ferro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: