couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iil...@apache.org
Subject [1/2] couch-mrview commit: updated refs/heads/master to f4aaf8d
Date Fri, 18 Nov 2016 22:56:47 GMT
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 <iilyak@apache.org>
Authored: Fri Nov 18 14:19:11 2016 -0800
Committer: ILYA Khlopotov <iilyak@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},


Mime
View raw message