summaryrefslogtreecommitdiff
path: root/apps/couch
diff options
context:
space:
mode:
Diffstat (limited to 'apps/couch')
-rw-r--r--apps/couch/src/couch_server.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/couch/src/couch_server.erl b/apps/couch/src/couch_server.erl
index 267e69b0..a08da475 100644
--- a/apps/couch/src/couch_server.erl
+++ b/apps/couch/src/couch_server.erl
@@ -331,7 +331,7 @@ handle_call({delete, DbName, _Options}, _From, Server) ->
Error ->
{reply, Error, Server}
end;
-handle_call({db_updated, Db}, _From, Server) ->
+handle_call({db_updated, #db{name = DbName} = Db}, _From, Server) ->
true = ets:insert(couch_dbs, Db),
true = ets:insert(couch_lru, {DbName, now()}),
{reply, ok, Server}.