[SERVER-2447] SplitVector::run() appears to use currKey in a way that is not concurrency safe Created: 31/Jan/11  Updated: 12/Jul/16  Resolved: 01/Mar/11

Status: Closed
Project: Core Server
Component/s: Concurrency, Sharding
Affects Version/s: None
Fix Version/s: 1.8.0-rc1

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-2062 audit btree memory accesses for unsaf... Closed
Operating System: ALL
Participants:

 Description   

The splitKeys and tooFrequentKeys collections in this function are populated using BSONObj objects copied directly from the cursor. Since we can yield while these collections are in use, we should make sure any necessary BSONObj objects from the cursor are owned.



 Comments   
Comment by auto [ 01/Mar/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: make sure not to use memory in a cursor when yielding SERVER-2447
https://github.com/mongodb/mongo/commit/ed6273ba49319928e3c241c4dec33c3195e612f4

Comment by auto [ 01/Mar/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: make sure not to use memory in a cursor when yielding SERVER-2447
https://github.com/mongodb/mongo/commit/a6ad2a147273f636641ccb1f66a76942f2016597

Generated at Thu Feb 08 02:59:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.