This is an automated email from the ASF dual-hosted git repository. davisp pushed a commit to branch optimize-ddoc-cache in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 8e134414f5998d4a29214d7e4e1d8320ae1e1173 Author: Paul J. Davis <[email protected]> AuthorDate: Tue Jun 20 10:20:01 2017 -0500 Remove duplicated eviction messages This is an old merge artifact that was duplicating the event notifications twice per design document update. --- src/couch/src/couch_db_updater.erl | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/couch/src/couch_db_updater.erl b/src/couch/src/couch_db_updater.erl index 49061b2..2b448fd 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}; -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
