diff options
-rw-r--r-- | src/couch_index/src/couch_index_compactor.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couch_index/src/couch_index_compactor.erl b/src/couch_index/src/couch_index_compactor.erl index ed8389983..d22474716 100644 --- a/src/couch_index/src/couch_index_compactor.erl +++ b/src/couch_index/src/couch_index_compactor.erl @@ -95,6 +95,7 @@ handle_info({'EXIT', Pid, Reason}, #st{pid = Pid} = State) -> IdxName = Mod:get(idx_name, IdxState), Args = [DbName, IdxName, Reason], couch_log:error("Compaction failed for db: ~s idx: ~s reason: ~p", Args), + ok = couch_index_server:set_compacting(State#st.idx, false), {noreply, State#st{pid = undefined}}; handle_info({'EXIT', _Pid, normal}, State) -> {noreply, State}; |