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

ReplIndexPrefetch Server Parameter is not thread-safe

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.1.8
    • Replication
    • None
    • Replication
    • ALL

    Description

      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;
          }
      

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: