You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2017/03/01 16:38:08 UTC

[34/43] couch-mrview commit: updated refs/heads/2971-count-distinct to f7c3c24

Add reference to indexer Pid to task status

When we run re-compaction stage we start second index updater from
view compactor. In this case couch_task_status:all would return two
identical entries for the same `design_document` and `shard`. Which is
very confusing. Add reference to indexer Pid to disambiguate them.
For the recompaction case the indexer_pid will be pointing to compaction task.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/commit/b3b1b121
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/tree/b3b1b121
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/diff/b3b1b121

Branch: refs/heads/2971-count-distinct
Commit: b3b1b121f6a153f0e3febc95cfbace597e4a9aab
Parents: e875745
Author: ILYA Khlopotov <ii...@apache.org>
Authored: Fri Nov 18 14:19:11 2016 -0800
Committer: ILYA Khlopotov <ii...@apache.org>
Committed: Fri Nov 18 14:42:19 2016 -0800

----------------------------------------------------------------------
 src/couch_mrview_updater.erl | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/b3b1b121/src/couch_mrview_updater.erl
----------------------------------------------------------------------
diff --git a/src/couch_mrview_updater.erl b/src/couch_mrview_updater.erl
index 8a85887..645f02b 100644
--- a/src/couch_mrview_updater.erl
+++ b/src/couch_mrview_updater.erl
@@ -38,6 +38,7 @@ start_update(Partial, State, NumChanges) ->
     Self = self(),
     MapFun = fun() ->
         couch_task_status:add_task([
+            {indexer_pid, Partial},
             {type, indexer},
             {database, State#mrst.db_name},
             {design_document, State#mrst.idx_name},