{"push_id":1266306100,"size":1,"distinct_size":1,"ref":"refs/heads/3060-handle-multi-query","head":"872227103a2f1988976d3a37f6619db3300a3dd1","before":"8f592014f61bd6eb5e8cd8431ea1667ccddc4e95","commits":[{"sha":"872227103a2f1988976d3a37f6619db3300a3dd1","author":{"name":"Nick Vatamaniuc","email":"5792ed18be5c9b9e7eec30eee82b412fc044ffa1@apache.org"},"message":"Properly handle multi-query streaming of results\n\nAfter commit:\n\nhttps://github.com/apache/couchdb-couch-mrview/commit/3ce28641c85af0d5054df47e9ac7de917a9d33cd\n\nIn `view_cb` if row came before meta, `row_sent` flag was set to not send meta\nlater. That makes sense for a single query. However, in case of multiple\nqueries, which could produce this sequence of callbacks:\n\nmeta , row, ... , complete, meta, row, ..., complete\n\nSecond query meta won't be sent because row_sent flag remains true.\n\nSo to fix, make sure to reset row_sent=false in after each `complete`. Also\nintroduce a `meta_sent` flag, to cover the case when meta was sent for\nsecond request and on first row we don't want to sent `{\"rows\":[...`.\n\nJira: COUCHDB-3060","distinct":true,"url":"https://api.github.com/repos/apache/couchdb-couch-mrview/commits/872227103a2f1988976d3a37f6619db3300a3dd1"}]}
{"actor":{"display_login":"asfgit"}}