-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
ALL
-
Sharding 2020-10-19
There are a few valid ways to output to a newly declared vector from std::transform. For example:
- Initialize the vector to the size of the input, so that std::transform can properly index into each memory space, OR
- Use std::back_inserter, which is an iterator that will call push_back on the output vector for each input element.
If one attempts to use std::transform on an uninitialized vector without using std::back_inserter, std::transform will induce a segfault attempting to index into memory that hasn't yet been allocated.
This ticket is to fix an instance of that bug in Resharding code.
- is depended on by
-
SERVER-51209 Fill in missing gaps in Resharding workflow to complete Milestone 1
- Closed
-
SERVER-51210 Call setInitialChunksAndZones from the config server reshardCollection command
- Closed