[ 
https://issues.apache.org/jira/browse/COUCHDB-3305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15901995#comment-15901995
 ] 

ASF subversion and git services commented on COUCHDB-3305:
----------------------------------------------------------

Commit 1f152daaac23dc96132139fb532786f77becdd64 in couchdb-couch's branch 
refs/heads/master from ILYA Khlopotov
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=1f152da ]

Fix initial accumulator value for builtin_sum_rows

This a fixup for https://github.com/apache/couchdb-couch/pull/229.
The initial value for accumulator suppose to be 0. Since the result of
sum and count is integer. The problem was discovered by dialyzer.

COUCHDB-3305


> don't crash with invalid input to built in reducer function
> -----------------------------------------------------------
>
>                 Key: COUCHDB-3305
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3305
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Database Core
>            Reporter: Tony Sun
>            Assignee: Tony Sun
>
> When users use a built in reduce function such as _sum, and documents have 
> invalid input, we currently crash and return a 500 with error message. This 
> improvement will return an error row without crashing for better debugging.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to