Previosly local node revisions were causing `badmatch` failures in read repair
filter. Node sequences already filtered out local nodes while NodeRevs didn't,
so
during matching `{Node, NodeSeq} = lists:keyfind(Node, 1, NodeSeqs)` Node would
not be found in the list and crash.
Example of crash:
```
fabric_rpc:update_docs/3 error:{badmatch,false}
[{fabric_rpc,'-read_repair_filter/3-fun-1-',4,[{file,"src/fabric_rpc.erl"},{line,360}]},
```
## Checklist
- [x] Code is written and works correctly;
- [x] Changes are covered by tests;
[ Full content available at: https://github.com/apache/couchdb/pull/1613 ]
This message was relayed via gitbox.apache.org for [email protected]