Skip to content

Commit 407e618

Browse files
authored
Merge pull request apache#4767 from apache/nouveau-badmatch-fix
avoid badmatch in error cases
2 parents 1ee46df + 8744b7b commit 407e618

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/nouveau/src/nouveau_index_manager.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ handle_info({'DOWN', IndexerRef, process, _Pid, Reason}, State) ->
9292
[{_, Index, Queue0}] = ets:lookup(?BY_DBSIG, DbSig),
9393
{{value, From}, Queue1} = queue:out(Queue0),
9494
case Reason of
95-
normal ->
95+
ok ->
9696
gen_server:reply(From, ok);
9797
{error, Msg} ->
9898
couch_log:error(

src/nouveau/src/nouveau_index_updater.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ update(#index{} = Index) ->
108108
),
109109
nouveau_api:drain_async_responses(Acc1#acc.reqids, 0),
110110
ibrowse:stop_worker_process(ConnPid),
111-
ok = nouveau_api:set_update_seq(Index, Acc1#acc.update_seq, NewCurSeq)
111+
exit(nouveau_api:set_update_seq(Index, Acc1#acc.update_seq, NewCurSeq))
112112
after
113113
ret_os_process(Proc)
114114
end

0 commit comments

Comments
 (0)