[SERVER-39024] PCQ::popMany should return a container, rather than output to an iterator Created: 15/Jan/19 Updated: 29/Oct/23 Resolved: 30/Jan/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.8 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Mira Carey | Assignee: | Mira Carey |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Service Arch 2019-01-28, Service Arch 2019-02-11 |
| Participants: |
| Description |
|
Writing to an output iterator is wonky, and dangerous when it comes to raw pointers. Rather than relying on that, let's return our internal container directly and allow for stealing the queue if we're taking all the elements. |
| Comments |
| Comment by Githook User [ 30/Jan/19 ] |
|
Author: {'username': 'hanumantmk', 'email': 'jcarey@argv.me', 'name': 'Jason Carey'}Message: improve the ProduceConsumerQueue's popMany and popManyUpTo to return a |