[SERVER-18755] Avoid generating random variable names for functions executed in parallel shell Created: 30/May/15 Updated: 05/Feb/16 Resolved: 11/Dec/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | None |
| Fix Version/s: | 3.3.0 |
| Type: | Task | Priority: | Trivial - P5 |
| Reporter: | Max Hirschhorn | Assignee: | Jonathan Abrahams |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | TIG E (01/08/16) |
| Participants: |
| Description |
|
Passing a function to startParallelShell() unnecessarily introduces a variable into the started shell's scope (using random numbers to avoid a collision).
Instead we can have jsCode immediately invoke the function expression, i.e. |
| Comments |
| Comment by Githook User [ 11/Dec/15 ] |
|
Author: {u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}Message: |