[SERVER-20441] ReplIndexPrefetch Server Parameter is not thread-safe Created: 16/Sep/15  Updated: 06/Dec/22  Resolved: 04/Jan/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 3.1.8
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Backlog - Replication Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-20096 ExportedServerParameter<T> is not thr... Closed
Assigned Teams:
Replication
Operating System: ALL
Participants:

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



 Comments   
Comment by Judah Schvimer [ 04/Jan/20 ]

This parameter went away with mmapv1 (SERVER-38143), closing Gone Away.

Generated at Thu Feb 08 03:54:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.