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

ReplIndexPrefetch Server Parameter is not thread-safe

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.1.8
    • Component/s: Replication
    • Labels:
      None
    • Replication
    • ALL

      The ReplIndexPrefetch Server Parameter in /src/mongo/db/prefetch.cpp is not thread-safe because it calls into methods in BackgroundSync that are not threads-safe.

      BackgroundSync class snippet:

          void setIndexPrefetchConfig(const IndexPrefetchConfig cfg) {
              _indexPrefetchConfig = cfg;
          }
      
          IndexPrefetchConfig getIndexPrefetchConfig() {
              return _indexPrefetchConfig;
          }
      

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: