Skip to content

Instantly share code, notes, and snippets.

@Vagabond
Created April 12, 2011 14:42
Show Gist options
  • Select an option

  • Save Vagabond/915619 to your computer and use it in GitHub Desktop.

Select an option

Save Vagabond/915619 to your computer and use it in GitHub Desktop.
(riak@centos)3> DocIdx = riak_core_util:chash_key({<<"bucket">>, <<"key">>}).
<<40,216,221,197,208,14,141,94,183,248,138,54,235,1,144,
183,233,178,41,166>>
(riak@centos)4> PL = riak_core_apl:get_apl(DocIdx, 3, riak_kv).
[{251195593916248939066258330623111144003363405824,
riak@ubuntu},
{274031556999544297163190906134303066185487351808,
riak@centos},
{296867520082839655260123481645494988367611297792,
riak@opensolaris}]
(riak@centos)5> Vnodes = [riak_core_vnode_master:get_vnode_pid(I, riak_kv_vnode) || {I,_} <- PL].
[{ok,<0.1902.0>},{ok,<0.218.0>},{ok,<0.1903.0>}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment