[SERVER-30849] CollectionCloner::_handleARMResultsCallback doesn't acquire mutex before accessing member variables Created: 25/Aug/17 Updated: 30/Oct/23 Resolved: 28/Aug/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.13 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | William Schultz (Inactive) | Assignee: | William Schultz (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 0 | ||||||||
| Description |
|
The method CollectionCloner::_handleARMResultsCallback doesn't synchronize access to member variables, for example, when it calls _bufferNextBatchFromArm() it is modifying the _documentsToInsert vector without holding a mutex. It needs to acquire the CollectionCloner mutex before reading or writing member variable data. |
| Comments |
| Comment by Githook User [ 28/Aug/17 ] |
|
Author: {'username': 'will62794', 'name': 'William Schultz', 'email': 'william.schultz@mongodb.com'}Message: |