Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
sync _users on add_node.
  • Loading branch information
Robert Newson committed Aug 1, 2011
1 parent 0df0a65 commit bbf52bab254603ffe822dd04686cb29b2fe4b8a6
Showing 1 changed file with 3 additions and 1 deletion.
@@ -25,7 +25,9 @@ init(_) ->
handle_event({add_node, Node}, State) ->
Db1 = list_to_binary(couch_config:get("mem3", "node_db", "nodes")),
Db2 = list_to_binary(couch_config:get("mem3", "shard_db", "dbs")),
[mem3_sync:push(Db, Node) || Db <- [Db1, Db2]],
Db3 = list_to_binary(couch_config:get("couch_httpd_auth",
"authentication_db", "_users")),
[mem3_sync:push(Db, Node) || Db <- [Db1, Db2, Db3]],
{ok, State};

handle_event({remove_node, Node}, State) ->

0 comments on commit bbf52ba

Please sign in to comment.