avoid race to code:load_file by using code:ensure_loaded instead #51

Merged
merged 1 commit into from Aug 8, 2012

Projects

None yet

2 participants

@beerriot
Contributor
beerriot commented Aug 1, 2012

It appears that R15B01 changed the triggers for when the "Module X must be purged before
loading" error is logged (as compared to R14B04).

As reported here: http://lists.basho.com/pipermail/riak-users_lists.basho.com/2012-July/008828.html

This patch should fix the issue by avoiding the race between the check on is_loaded and the call to load_file.

Bryan Fink avoid race to code:load_file by using code:ensure_loaded instead
This should get rid of the spurious messages about "Module X must be purged before
loading"
d8f5e6f
Contributor

+1

@beerriot beerriot merged commit d8f5e6f into 1.2 Aug 8, 2012
@beerriot beerriot was assigned Aug 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment