riak_test/intercepts/riak_core_broadcast_intercepts.erl
Jordan West 8f8fad10df cluster meta simulation test
this test is not meant to be part of the main riak_test giddyup suites
but it is useful for measuring certain properties of cluster metadata.
2013-12-19 08:32:44 -08:00

10 lines
337 B
Erlang

-module(riak_core_broadcast_intercepts).
-compile(export_all).
-include("intercept.hrl").
global_send(Msg, Peers) when is_list(Peers) ->
[global_send(Msg, P) || P <- Peers];
global_send(Msg, P) ->
?I_INFO("sending through proxy"),
gen_server:cast({global, cluster_meta_proxy_server}, {node(), riak_core_broadcast, P, Msg}).