You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2014/02/08 19:32:26 UTC

fabric commit: updated refs/heads/1993-bigcouch-couch-mrview to d6955af

Updated Branches:
  refs/heads/1993-bigcouch-couch-mrview 3146e4e1b -> d6955af95


Update all docs meta callback for couch_mrview format


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

Branch: refs/heads/1993-bigcouch-couch-mrview
Commit: d6955af9513f6d57528129983b52016404296d63
Parents: 3146e4e
Author: Russell Branca <ch...@gmail.com>
Authored: Sat Feb 8 10:31:22 2014 -0800
Committer: Russell Branca <ch...@gmail.com>
Committed: Sat Feb 8 10:31:22 2014 -0800

----------------------------------------------------------------------
 src/fabric_view_all_docs.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/d6955af9/src/fabric_view_all_docs.erl
----------------------------------------------------------------------
diff --git a/src/fabric_view_all_docs.erl b/src/fabric_view_all_docs.erl
index 1415c82..03ed09b 100644
--- a/src/fabric_view_all_docs.erl
+++ b/src/fabric_view_all_docs.erl
@@ -123,7 +123,8 @@ handle_message({total_and_offset, Tot, Off}, {Worker, From}, State) ->
             }};
         false ->
             FinalOffset = erlang:min(Total, Offset+State#collector.skip),
-            {Go, Acc} = Callback({total_and_offset, Total, FinalOffset}, AccIn),
+            Meta = [{total, Total}, {offset, FinalOffset}],
+            {Go, Acc} = Callback({meta, Meta}, AccIn),
             {Go, State#collector{
                 counters = fabric_dict:decrement_all(Counters2),
                 total_rows = Total,