[SERVER-74715] BSONObj::objsize() should return a size_t Created: 09/Mar/23 Updated: 27/Mar/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Antonio Fuschetto | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Storage Execution
|
||||||||
| Participants: | |||||||||
| Description |
|
The BSONObj::objsize() function returns a countable value and the data type size_t would be preferable to int. This is also necessary to avoid annoying explicit casts when the return value is compared to size_t objects. On the other hand, the BSONElement:: objsize() function already returns size_t values. |