This is an automated email from the ASF dual-hosted git repository. jiangphcn pushed a commit to branch add_name in repository https://gitbox.apache.org/repos/asf/couchdb-ken.git
commit 944a7e559843be826c3a55f7605bc0d1543047a6 Author: jiangph <jian...@cn.ibm.com> AuthorDate: Mon Feb 25 20:36:55 2019 +0800 Add Name to search_updated and st_updated --- src/ken_server.erl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ken_server.erl b/src/ken_server.erl index 25da5ac..ef718df 100644 --- a/src/ken_server.erl +++ b/src/ken_server.erl @@ -309,15 +309,15 @@ update_ddoc_indexes(Name, #doc{}=Doc, State) -> false -> ok end, - SearchUpdated = search_updated(Doc, Seq, State), - STUpdated = st_updated(Doc, Seq, State), + SearchUpdated = search_updated(Name, Doc, Seq, State), + STUpdated = st_updated(Name, Doc, Seq, State), case {ViewUpdated, SearchUpdated, STUpdated} of {ok, ok, ok} -> ok; _ -> resubmit end. -ifdef(HAS_DREYFUS). -search_updated(Doc, Seq, State) -> +search_updated(Name, Doc, Seq, State) -> case should_update(Doc, <<"indexes">>) of true -> try dreyfus_index:design_doc_to_indexes(Doc) of SIndexes -> update_ddoc_search_indexes(Name, SIndexes, Seq, State) @@ -328,12 +328,12 @@ search_updated(Doc, Seq, State) -> ok end. -else. -search_updated(_Doc, _Seq, _State) -> +search_updated(_Name, _Doc, _Seq, _State) -> ok. -endif. -ifdef(HAS_HASTINGS). -st_updated(Doc, Seq, State) -> +st_updated(Name, Doc, Seq, State) -> case should_update(Doc, <<"st_indexes">>) of true -> try hastings_index:design_doc_to_indexes(Doc) of @@ -345,7 +345,7 @@ st_updated(Doc, Seq, State) -> ok end. -else. -st_updated(_Doc, _Seq, _State) -> +st_updated(_Name, _Doc, _Seq, _State) -> ok. -endif.