[SERVER-3630] 'this' supplied to map function not read only Created: 17/Aug/11  Updated: 11/Jul/16  Resolved: 04/Oct/11

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Improvement Priority: Major - P3
Reporter: Aaron Staple Assignee: Antoine Girbal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-9448 Read-only receivers in MapReduce code... Closed
Participants:

 Description   

See QA-19

  • I also saw a related checkin for supporting use of read only docs when calling invoke() for the m/r map function. I tried to test that and it wasn't working for me - seemed to result from PooledScope::invoke not forwarding the appropriate variables.


 Comments   
Comment by auto [ 04/Oct/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: SERVER-3630: 'this' supplied to map function not read only
Branch: master
https://github.com/mongodb/mongo/commit/2fb57a8d5eb9756feafa86c4bc66460cf7b92222

Comment by Antoine Girbal [ 04/Oct/11 ]

thanks, good catch.
It was working earlier but somehow got broken.
Both the "this" in map() and arguments in reduce() are read-only for speed in V8.

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