[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: |
|
||||||||||||
| 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 |
| 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 |