summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2017-06-20 10:20:01 -0500
committerPaul J. Davis <paul.joseph.davis@gmail.com>2017-08-01 10:32:59 -0500
commit55943f278c82b6253363a983f7d80c2849ecb38a (patch)
tree435b41eecfb67ec3cb0f9a9ff0b6f24478409231
parentf8cb6f97c3a2d90449065c75dbc5405b34a61d18 (diff)
downloadcouchdb-55943f278c82b6253363a983f7d80c2849ecb38a.tar.gz
Remove duplicated eviction messages
This is an old merge artifact that was duplicating the event notifications twice per design document update.
-rw-r--r--src/couch/src/couch_db_updater.erl11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/couch/src/couch_db_updater.erl b/src/couch/src/couch_db_updater.erl
index 8a0fb8cfd..b4ad257ff 100644
--- a/src/couch/src/couch_db_updater.erl
+++ b/src/couch/src/couch_db_updater.erl
@@ -923,16 +923,7 @@ update_docs_int(Db, DocsList, NonRepDocs, MergeConflicts, FullCommit) ->
(_) -> []
end, Ids),
- Db4 = case length(UpdatedDDocIds) > 0 of
- true ->
- couch_event:notify(Db3#db.name, ddoc_updated),
- ddoc_cache:evict(Db3#db.name, UpdatedDDocIds),
- refresh_validate_doc_funs(Db3);
- false ->
- Db3
- end,
-
- {ok, commit_data(Db4, not FullCommit), UpdatedDDocIds}.
+ {ok, commit_data(Db3, not FullCommit), UpdatedDDocIds}.
update_local_docs(Db, []) ->
{ok, Db};