What you're seeing is default behavior of the Erlang code server.  After 
sending code:load_binary, send code:purge(modname) as well to force unloading 
of the older module version.

Sean Cribbs

On Oct 18, 2011, at 8:06 AM, "andrzej kajetanowicz" <[email protected]> wrote:

> Does anybody know if Riak uses any kind of function/module caching as long as 
> map/reduce functions.I have my Erlang application sending map-reduce queries 
> using  module/function notation (modfun). To make my custom map/reduce 
> functions available on Riak cluster I use code:load_binary(RiakNode, ... ). I 
> trigger this function every time my application is complied and started. The 
> problem is that map/reduce queries return results that look like Riak is 
> using old/previous version of functions. Is 
> there any way i can force Riak to reload map/reduce functions module via 
> code:load_binary ?
> 
> 
> 
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to