couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject [38/43] couch-mrview commit: updated refs/heads/2971-count-distinct to f7c3c24
Date Wed, 01 Mar 2017 16:38:12 GMT
Convert pid of indexer to binary

This is a fixup for https://github.com/apache/couchdb-couch-mrview/pull/62
Properties passed to couch_task_status:add_task cannot contain complex
types. Because the status need to be representable in JSON.


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

Branch: refs/heads/2971-count-distinct
Commit: c49211cdca99a198235a6a8798692d8b1163f6bf
Parents: 5899436
Author: ILYA Khlopotov <iilyak@apache.org>
Authored: Thu Dec 1 16:51:46 2016 -0800
Committer: ILYA Khlopotov <iilyak@apache.org>
Committed: Thu Dec 1 16:51:46 2016 -0800

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/c49211cd/src/couch_mrview_updater.erl
----------------------------------------------------------------------
diff --git a/src/couch_mrview_updater.erl b/src/couch_mrview_updater.erl
index 0ceaa40..214f487 100644
--- a/src/couch_mrview_updater.erl
+++ b/src/couch_mrview_updater.erl
@@ -38,7 +38,7 @@ start_update(Partial, State, NumChanges) ->
     Self = self(),
     MapFun = fun() ->
         couch_task_status:add_task([
-            {indexer_pid, Partial},
+            {indexer_pid, ?l2b(pid_to_list(Partial))},
             {type, indexer},
             {database, State#mrst.db_name},
             {design_document, State#mrst.idx_name},


Mime
View raw message