[SERVER-1400] Array.sum doesn't work in final reduce Created: 12/Jul/10 Updated: 12/Jul/16 Resolved: 22/Jul/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 1.5.6 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
> function map() { emit('count', 1); }> function reduce(key, values) { return Array.sum(values) }> out = db.foo.mapReduce(map, reduce) " |
| Comments |
| Comment by auto [ 22/Jul/10 ] |
|
Author: {'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: fix final reduce scoping |
| Comment by auto [ 22/Jul/10 ] |
|
Author: {'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: broken test for |
| Comment by auto [ 22/Jul/10 ] |
|
Author: {'login': 'kreuter', 'name': 'Richard Kreuter', 'email': 'richard@10gen.com'}Message: Add a test for |
| Comment by Richard Kreuter (Inactive) [ 21/Jul/10 ] |
|
M3: [conn2] Wed Jul 21 18:52:37 Assertion: 13388:shard version not ok in Client::Context: your version is too old ns: test.foo global: 4|3 client: 4|1 |