-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication, Testing Infrastructure
-
None
-
Fully Compatible
-
ALL
-
Repl 2017-08-21
Records::const_iterator it = records.lower_bound(startingPosition);
if (it == records.end() || it->first > startingPosition)
--it;
return it->first;
This loop should first check that it != records.begin(). Otherwise --it will fall off the front of the map.