Expected behaviour after sync function update and _resync

I have observed that if I modify the sync function such that more existing documents are now included in an existing channel, and then execute a _resync, then existing clients with an existing pull replication on this channel will not pull replicate the new docs now included in the channel.

If I make a change to one of the docs then the new revision is replicated down to the client.

Starting replication on this channel from a new client will include all the new docs in the channel.

This feels like a bug to me. Is it, or is my understanding of expected behaviour incorrect?

That does sound like a potential bug. Can you file a ticket in the Sync Gateway repo for further investigation?

Raised as https://github.com/couchbase/sync_gateway/issues/2346