[SERVER-973] 64bit integers in group Created: 06/Apr/10 Updated: 12/Jul/16 Resolved: 08/Jul/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | 1.4.0 |
| Fix Version/s: | 1.5.5 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sergej Jure?ko | Assignee: | Aaron Staple |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
Seeding a group call with a 64bit integer will produce unwanted results. Instead of summing on an integer field, it will concatenate strings. Example This will work in mongo console, because size is seeded with a 32bit integer or a double , cond : {ch : "channelname"}, reduce : function(doc,out) {out.size += doc.size;}, initial : {size : 0}}) If a driver uses a 64 bit integer, the reduce function is going to go like this (printjson output): { "ch" : "eph.eph.main", "size" : { "floatApprox" : 0 }} { "ch" : "eph.eph.main", "size" : "[object Object]23810924" } { "ch" : "eph.eph.main", "size" : "[object Object]2381092418479807" } { "ch" : "eph.eph.main", "size" : "[object Object]23810924184798075661612" }{ |
| Comments |
| Comment by auto [ 08/Jul/10 ] |
|
Author: {'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}Message: |