[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:
Related
is related to SERVER-71413 RecordData should store size as unsigned Backlog
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.


Generated at Thu Feb 08 06:28:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.