This is an automated email from the ASF dual-hosted git repository. davisp pushed a commit to branch fix-filter-changes-feed-rewinds in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 27abf0e67c082518e41c264f01cc6540ef7204a6 Author: Paul J. Davis <[email protected]> AuthorDate: Wed Mar 11 16:43:22 2020 -0500 Send correct seq values for filtered changes If a filtered changes feed hit a rewind we would send a bare `integer()` value for the Seq. If this was used again during a rewind it causes a competely rewind to zero due to not having the `node()` and UUID `binary()` values to calculate a new start seq. --- src/fabric/src/fabric_rpc.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fabric/src/fabric_rpc.erl b/src/fabric/src/fabric_rpc.erl index 7b688b2..a67dcd1 100644 --- a/src/fabric/src/fabric_rpc.erl +++ b/src/fabric/src/fabric_rpc.erl @@ -515,7 +515,8 @@ changes_enumerator(DocInfo, Acc) -> [] -> ChangesRow = {no_pass, [ {pending, Pending-1}, - {seq, Seq}]}; + {seq, {Seq, uuid(Db), couch_db:owner_of(Epochs, Seq)}} + ]}; Results -> Opts = if Conflicts -> [conflicts | DocOptions]; true -> DocOptions end, ChangesRow = {change, [
