commit | cdeab872144d30ef89c5aca36a3adbf22766c092 | [log] [tgz] |
---|---|---|
author | Eric Avdey <eiri@eiri.ca> | Fri May 27 14:59:23 2016 -0300 |
committer | Eric Avdey <eiri@eiri.ca> | Thu Jun 02 16:23:23 2016 -0300 |
tree | 8a00d4bffb91bcef534e3e845876184412ef89ef | |
parent | 880dedc94ef8d6f6707328370dd78a787388ea9b [diff] |
Fix _node/$node/_system endpoint The endpoint is using same handler as a backdoor interface, which only works for the requests to a local $node. For rpc calls to the remote nodes, the same as it's done on rest of /_node endpoints, handle_node_req handler is getting {badrpc,{'EXIT',normal}} response and fails with invalid_ejson exception. The change splits stats gathering from stats responding, allowing to use former on both /_node/$node/_system and backend's /_system endpoints.