[SERVER-83286] Value::copyValue should try to convert bsonString's to StringSmall's if possible Created: 15/Nov/23  Updated: 27/Nov/23  Resolved: 27/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Parker Felix Assignee: Parker Felix
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Participants:
Linked BF Score: 135

 Description   

bsonString's should get "copied" into the shallow StringSmall if possible. This can be done by changing the call in copyValue from makeBigString to makeNewString.



 Comments   
Comment by Githook User [ 27/Nov/23 ]

Author:

{'name': 'Parker Felix', 'email': 'parker.felix@mongodb.com', 'username': 'parker-felix'}

Message: SERVER-83286 copyValue will attempt to convert bsonString's to StringSmall's
Branch: master
https://github.com/mongodb/mongo/commit/dc4e3d6a4ad297de16f19358becfc9e57af9ff13

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