Fix typo in auth cache event listener config

Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/f1e1638e
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/f1e1638e
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/f1e1638e

Branch: refs/heads/windsor-merge-209
Commit: f1e1638ebd713c1b630034dfe03e6de6da1bd83c
Parents: d34d796
Author: Paul J. Davis <[email protected]>
Authored: Fri Jun 14 18:47:02 2013 -0500
Committer: Robert Newson <[email protected]>
Committed: Tue Aug 5 16:19:11 2014 +0100

----------------------------------------------------------------------
 src/couch_auth_cache.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/f1e1638e/src/couch_auth_cache.erl
----------------------------------------------------------------------
diff --git a/src/couch_auth_cache.erl b/src/couch_auth_cache.erl
index 72e9278..82fb095 100644
--- a/src/couch_auth_cache.erl
+++ b/src/couch_auth_cache.erl
@@ -213,7 +213,7 @@ handle_info({'EXIT', LPid, _Reason}, 
#state{event_listener=LPid}=State) ->
 handle_info(restart_event_listener, State) ->
     [{auth_db_name, AuthDbName}] = ets:lookup(?STATE, auth_db_name),
     {ok, NewListener} = couch_event:link_listener(
-            ?MODULE, handle_db_event, nil, [{dbanme, AuthDbName}]
+            ?MODULE, handle_db_event, nil, [{dbname, AuthDbName}]
         ),
     {noreply, State#state{event_listener=NewListener}};
 handle_info({gen_event_EXIT, {config_listener, ?MODULE}, _Reason}, State) ->

Reply via email to