Jo,
Thanks for getting back to me, I actually have already tried the solution you
suggested, although I still came across the problem where in the event of a
primary coming back after a failure I would end up with 2 active processes. I
am sure I could get around my issue if I could ask the ques
If you want to determine if a vnode is a primary or secondary node,
you can check if a vnode owns the particular index it is handling. If
it owns the index, it's a primary; otherwise, a secondary.
riak_core_ring:index_owner is the function to look into. The
should_handoff function in riak_core_vnod
I have a quick question regarding riak_core:
Basically I am trying to build an application on top of riak_core that
allows me to spawn a session per user interaction, so I can both hold state and
queue requests to ensure ( as best I can ) that a user will only be interacting
with my sys