You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2021/09/01 19:00:34 UTC

[couchdb] branch chewbranca-ioq-experiments-rebase updated: Fix compaction swap

This is an automated email from the ASF dual-hosted git repository.

chewbranca pushed a commit to branch chewbranca-ioq-experiments-rebase
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/chewbranca-ioq-experiments-rebase by this push:
     new 7a09fb0  Fix compaction swap
7a09fb0 is described below

commit 7a09fb0ac0728e0ec05ce0bf32d7e7f417b9d735
Author: Russell Branca <ch...@apache.org>
AuthorDate: Wed Sep 1 12:00:15 2021 -0700

    Fix compaction swap
---
 src/couch_mrview/src/couch_mrview_compactor.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch_mrview/src/couch_mrview_compactor.erl b/src/couch_mrview/src/couch_mrview_compactor.erl
index 82d0629..a28967c 100644
--- a/src/couch_mrview/src/couch_mrview_compactor.erl
+++ b/src/couch_mrview/src/couch_mrview_compactor.erl
@@ -219,7 +219,7 @@ swap_compacted(OldState, NewState) ->
     } = NewState,
 
     link(ioq:fd_pid(NewState#mrst.fd)),
-    Ref = erlang:monitor(process, NewState#mrst.fd),
+    Ref = erlang:monitor(process, ioq:fd_pid(NewState#mrst.fd)),
 
     RootDir = couch_index_util:root_dir(),
     IndexFName = couch_mrview_util:index_file(DbName, Sig),