[SERVER-12432] Garbage string being set to ns when calling gle by down conversion module Created: 22/Jan/14  Updated: 11/Jul/16  Resolved: 23/Jan/14

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.5.4
Fix Version/s: 2.5.5

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Operating System: ALL
Participants:
Linked BF Score: 0

 Comments   
Comment by Githook User [ 23/Jan/14 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-12432 Garbage string being set to ns when calling gle by down conversion module
Branch: master
https://github.com/mongodb/mongo/commit/b82f438f807681ff409c31abdee58b3f0ead5ab0

Comment by Randolph Tan [ 22/Jan/14 ]

Caused by trying to construct a StringData from a temporary:

https://github.com/mongodb/mongo/blob/6be5ff60cf3233dff7fff542ded1a06b541076b1/src/mongo/s/write_ops/dbclient_safe_writer.cpp#L78

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