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


   Good catch! I think the bug occurs when one shard sends both the `meta` 
message and the followup `complete` message before `meta` messages have been 
received from other shards. `fabric_view:maybe_send_row/1` handles this 
condition correctly, but the `limit=0` pattern match in 
`fabric_view_map:handle_message/1` does not. I think the fix is simply to call 
`maybe_send_row` there instead -- it looks a bit odd since we obviously _don't_ 
want to send a row, but it's the DRY approach.


-- 
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