rnewson commented on issue #3750:
URL: https://github.com/apache/couchdb/issues/3750#issuecomment-920353683


   If we look back at the original introduction of the limit=0 clause in 
https://github.com/apache/couchdb/commit/4e0c97bf3587e9d0e330494f0d06194c0c4bfa17
 I wonder if this isn't the better fix;
   
   ```
   diff --git a/src/fabric/src/fabric_view_map.erl 
b/src/fabric/src/fabric_view_map.erl
   index b8d0d392a..ff6aa8b69 100644
   --- a/src/fabric/src/fabric_view_map.erl
   +++ b/src/fabric/src/fabric_view_map.erl
   @@ -146,7 +146,7 @@ handle_message({meta, Meta0}, {Worker, From}, State) ->
            }}
        end;
   
   -handle_message(#view_row{}, {_, _}, #collector{limit=0} = State) ->
   +handle_message(#view_row{}, {_, _}, #collector{sorted=false, limit=0} = 
State) ->
        #collector{callback=Callback} = State,
        {_, Acc} = Callback(complete, State#collector.user_acc),
        {stop, State#collector{user_acc=Acc}};
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to