diff options
author | Brad Anderson <brad@cloudant.com> | 2010-07-13 12:25:19 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-12 01:24:22 -0400 |
commit | 49de47fb50998ee4d266ad046d3b9c437fe64393 (patch) | |
tree | 6ac72bd617df11b1fac3598fa5090242a23d3beb | |
parent | 6db30f462e5c77df2a4fb56cd793ecb5243ecdff (diff) |
add _membership handler to cluster http layer, and get good node list
-rw-r--r-- | src/mem3_httpd.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem3_httpd.erl b/src/mem3_httpd.erl index 4b4f8496..3609de24 100644 --- a/src/mem3_httpd.erl +++ b/src/mem3_httpd.erl @@ -9,7 +9,7 @@ handle_membership_req(#httpd{method='GET', path_parts=[<<"_membership">>]} = Req) -> - {ok,ClusterNodes} = try mem3:nodes() + ClusterNodes = try mem3:nodes() catch _:_ -> {ok,[]} end, couch_httpd:send_json(Req, {[ {all_nodes, lists:sort([node()|nodes()])}, |