You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ii...@apache.org on 2016/11/18 22:56:47 UTC

[1/2] couch-mrview commit: updated refs/heads/master to f4aaf8d

Repository: couchdb-couch-mrview
Updated Branches:
  refs/heads/master e875745af -> f4aaf8de5


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/master
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},


[2/2] couch-mrview commit: updated refs/heads/master to f4aaf8d

Posted by ii...@apache.org.
Merge remote branch 'cloudant:77867-add-indexer-pid-to-task-status'

This closes #62

Signed-off-by: ILYA Khlopotov <ii...@apache.org>


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/f4aaf8de
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/tree/f4aaf8de
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/diff/f4aaf8de

Branch: refs/heads/master
Commit: f4aaf8de5a9d05ecd4b69707efa0d5ee89c98736
Parents: e875745 b3b1b12
Author: ILYA Khlopotov <ii...@apache.org>
Authored: Fri Nov 18 14:56:27 2016 -0800
Committer: ILYA Khlopotov <ii...@apache.org>
Committed: Fri Nov 18 14:56:27 2016 -0800

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