[SERVER-73636] Coverity analysis defect 135025: Inefficient vector resizing with reserve. Created: 06/Feb/23 Updated: 29/Oct/23 Resolved: 10/Feb/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.2.24, 4.4.19, 5.0.15, 7.0.0-rc0, 6.0.5, 6.2.1, 6.3.0-rc1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Coverity Collector User | Assignee: | Dan Larkin-York |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | coverity | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Assigned Teams: |
Storage Execution
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Backport Requested: |
v6.3, v6.2, v6.0, v5.0, v4.4, v4.2
|
||||
| Sprint: | Execution Team 2023-02-20 | ||||
| Participants: | |||||
| Description |
|
Inefficient vector resizing with reserve. This operation, if performed to grow large vectors, may take a very long time to complete. A vector's capacity is increased with reserve in a manner that causes many unnecessary copies. |
| Comments |
| Comment by Githook User [ 11/Feb/23 ] |
|
Author: {'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}Message: (cherry picked from commit c0e1438cad31e00372a9f9edaee80f9db5a4e8ed) |
| Comment by Githook User [ 11/Feb/23 ] |
|
Author: {'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}Message: (cherry picked from commit c0e1438cad31e00372a9f9edaee80f9db5a4e8ed) |
| Comment by Githook User [ 11/Feb/23 ] |
|
Author: {'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}Message: (cherry picked from commit c0e1438cad31e00372a9f9edaee80f9db5a4e8ed) |
| Comment by Githook User [ 10/Feb/23 ] |
|
Author: {'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}Message: (cherry picked from commit c0e1438cad31e00372a9f9edaee80f9db5a4e8ed) |
| Comment by Githook User [ 10/Feb/23 ] |
|
Author: {'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}Message: (cherry picked from commit 2d90115a227572cc0f46b309ceb47dda6b740da3) |
| Comment by Githook User [ 10/Feb/23 ] |
|
Author: {'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}Message: (cherry picked from commit c0e1438cad31e00372a9f9edaee80f9db5a4e8ed) |
| Comment by Githook User [ 10/Feb/23 ] |
|
Author: {'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}Message: |