You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2018/07/18 20:08:08 UTC

[couchdb] branch user-partitioned-dbs-wip updated: support reduce results in partitioned dbs

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

rnewson pushed a commit to branch user-partitioned-dbs-wip
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/user-partitioned-dbs-wip by this push:
     new da9e00f  support reduce results in partitioned dbs
da9e00f is described below

commit da9e00f91deff22e74bd217c4acb9006dd055812
Author: Robert Newson <rn...@apache.org>
AuthorDate: Wed Jul 18 21:08:02 2018 +0100

    support reduce results in partitioned dbs
---
 src/fabric/src/fabric_view.erl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/fabric/src/fabric_view.erl b/src/fabric/src/fabric_view.erl
index 32ad422..f177ce1 100644
--- a/src/fabric/src/fabric_view.erl
+++ b/src/fabric/src/fabric_view.erl
@@ -277,6 +277,8 @@ transform_row(#view_row{key=Key, id=Id, value=Value, doc=Doc}) ->
 
 unpartition_row(#collector{partitioned=true}, #view_row{key=[_Partition, Key]} = Row) ->
     Row#view_row{key = Key};
+unpartition_row(#collector{partitioned=true}, #view_row{key=null} = Row) ->
+    Row#view_row{key = null};
 unpartition_row(#collector{partitioned=false}, Row) ->
     Row.