Commits

Bryan Fink  committed a5203df

Client:get_stats(local) gets stats for the node that Client connects to, not necessarily the node on which get_stats/1 is called

  • Participants
  • Parent commits 1aa1327

Comments (0)

Files changed (1)

File src/riak_client.erl

     rpc:call(Node, riak_eventer, remove_handler, [Pid, MatchHead, MatchGuard]). 
 
 get_stats(local) ->
-    [{node(), gen_server:call(riak_stat, get_stats)}];
+    [{Node, rpc:call(Node, gen_server, call, [riak_stat, get_stats])}];
 get_stats(global) ->
     {ok, Ring} = rpc:call(Node, riak_ring_manager, get_my_ring, []),
     Nodes = riak_ring:all_members(Ring),