Operational Defect Database

BugZero found this defect 88 days ago.

MongoDB | 2584288

Change Locker::setDebugInfo to take ownership of the string

Last update date:

3/11/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

8.0.0-rc0

Description:

Info

The string is copied today which is a waste when generally they are temporary strings. There are two cases in the code where code does locker->setDebugInfo(obj.toBSON().toString()) which wastes a lot of memory

Top User Comments

xgen-internal-githook commented on Sat, 9 Mar 2024 03:27:45 +0000: Author: {'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'} Message: SERVER-86907 Change Locker::setDebugInfo to take ownership of the string GitOrigin-RevId: d81675c5f37c98a856d5bc07d010d9294faac149 Branch: master https://github.com/mongodb/mongo/commit/9feb3c94910491afc21f34b01dabc7a617a4fa89

Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Closed

Learn More

Search:

...