Skip to content

Instantly share code, notes, and snippets.

@rzezeski
Created November 1, 2012 20:30
Show Gist options
  • Save rzezeski/3996286 to your computer and use it in GitHub Desktop.
Save rzezeski/3996286 to your computer and use it in GitHub Desktop.
merge index forced compaction
SVNodes = riak_core_vnode_manager:all_vnodes(riak_search_vnode).
GetMIPid = fun(VNodePid) -> element(3,element(4,element(4,element(2,hd(element(2,lists:nth(3,lists:nth(5,element(4,sys:get_status(VNodePid)))))))))) end.
[merge_index:compact(GetMIPid(VNodePid)) || {_,_,VNodePid} <- SVNodes].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment