This is an automated email from the ASF dual-hosted git repository. rnewson pushed a commit to branch clouseau-4.x-inconsistent-type-crash in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 63fb55ffb7f0fec1765e438dc00663ad8fb9e3af Author: Robert Newson <[email protected]> AuthorDate: Wed Nov 18 20:31:03 2026 +0000 exit dreyfus indexer on update error --- src/dreyfus/src/dreyfus_index_updater.erl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/dreyfus/src/dreyfus_index_updater.erl b/src/dreyfus/src/dreyfus_index_updater.erl index 54f79df82..469be636c 100644 --- a/src/dreyfus/src/dreyfus_index_updater.erl +++ b/src/dreyfus/src/dreyfus_index_updater.erl @@ -145,8 +145,13 @@ update_or_delete_index(IndexPid, Db, DI, Proc) -> Fields1 = [list_to_tuple(Field) || Field <- Fields], Fields2 = maybe_add_partition(Db, Id, Fields1), case Fields2 of - [] -> ok = clouseau_rpc:delete(IndexPid, Id); - _ -> ok = clouseau_rpc:update(IndexPid, Id, Fields2) + [] -> + ok = clouseau_rpc:delete(IndexPid, Id); + _ -> + case clouseau_rpc:update(IndexPid, Id, Fields2) of + ok -> ok; + {error, Reason} -> exit({error, Reason}) + end end end end.
