[SERVER-69693] Use lambda instead of repeating code in resharding coordinator Created: 14/Sep/22 Updated: 29/Oct/23 Resolved: 14/Sep/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.13, 6.0.2, 6.1.0-rc3, 6.2.0-rc0 |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Andrew Witten (Inactive) | Assignee: | Andrew Witten (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 | ||||
| Backport Requested: |
v6.1, v6.0, v5.0
|
||||
| Participants: | |||||
| Description |
|
In src/mongo/db/s/resharding/resharding_coordinator_commit_monitor.cpp we have code
and
Because repeating code like this is error prone (although not a bug), and to be consistent with branches 5.0 and 6.0, we should rewrite this to use a lambda
|
| Comments |
| Comment by Githook User [ 20/Sep/22 ] |
|
Author: {'name': 'Andrew Witten', 'email': 'andrew.witten@mongodb.com', 'username': 'awitten1'}Message: (cherry picked from commit abd6330d793235c8fbc5de7bf3ec53855ebea9d3)
(cherry picked from commit dd9d37fa07a7af46ac4ee8dabeb235dc9571afb0) |
| Comment by Githook User [ 14/Sep/22 ] |
|
Author: {'name': 'Andrew Witten', 'email': 'andrew.witten@mongodb.com', 'username': 'awitten1'}Message: (cherry picked from commit abd6330d793235c8fbc5de7bf3ec53855ebea9d3)
|
| Comment by Githook User [ 14/Sep/22 ] |
|
Author: {'name': 'Andrew Witten', 'email': 'andrew.witten@mongodb.com', 'username': 'awitten1'}Message: (cherry picked from commit abd6330d793235c8fbc5de7bf3ec53855ebea9d3)
|
| Comment by Githook User [ 14/Sep/22 ] |
|
Author: {'name': 'Andrew Witten', 'email': 'andrew.witten@mongodb.com', 'username': 'awitten1'}Message: |