You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/01/17 22:54:27 UTC
[09/50] git commit: Fix error causing crash on add_node
Fix error causing crash on add_node
Project: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/commit/0ad9c87c
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/tree/0ad9c87c
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/diff/0ad9c87c
Branch: refs/heads/import
Commit: 0ad9c87c11799e129118ab5510fa20b3b31991d3
Parents: d39a791
Author: Adam Kocoloski <ad...@cloudant.com>
Authored: Mon Jun 4 10:58:40 2012 -0400
Committer: Adam Kocoloski <ad...@cloudant.com>
Committed: Mon Jun 4 10:58:40 2012 -0400
----------------------------------------------------------------------
src/mem3_nodes.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-mem3/blob/0ad9c87c/src/mem3_nodes.erl
----------------------------------------------------------------------
diff --git a/src/mem3_nodes.erl b/src/mem3_nodes.erl
index 445c9b6..a3d841e 100644
--- a/src/mem3_nodes.erl
+++ b/src/mem3_nodes.erl
@@ -58,7 +58,7 @@ handle_call({get_node_info, Node, Key}, _From, State) ->
{reply, Resp, State};
handle_call({add_node, Node, NodeInfo}, _From, State) ->
gen_event:notify(mem3_events, {add_node, Node}),
- ets:insert(?MODULE, Node, NodeInfo),
+ ets:insert(?MODULE, {Node, NodeInfo}),
{reply, ok, State};
handle_call({remove_node, Node}, _From, State) ->
gen_event:notify(mem3_events, {remove_node, Node}),