![]() | Riak - Day 2 homework |
|
26 Aug 2012, 13:12
Radek Skokan (2 posts) |
Hello, I’m having a strange problem with the homework for day 2. When I restrict the inputs to only few rooms, it works well. The code look s like
But once I want to go through all the rooms, Riak (1.2) complains with It is almost the same code just with different specification of the inputs section:
Any Idea what I’m doing wrong? Thanks PS: Thanks for the nice book! |
|
28 Aug 2012, 17:19
Mick Brooks (6 posts) |
Hi Radek, My guess is that the problem is caused by the reduce not returning an array, similar to what was happening here: http://forums.pragprog.com/forums/202/topics/10881 even though the error message you see is not identical. If I’m right, the fix is to change the reduce function to Cheers, Mick |
|
06 Sep 2012, 12:02
Radek Skokan (2 posts) |
You are right Mick, once I changed it to return an array, Riak doesn’t complain anymore (still my code here is not perfect ;-) ). Thanks! |
| You must be logged in to comment |

