You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Roger Binns <ro...@rogerbinns.com> on 2009/12/01 04:55:32 UTC

Re: filters for _changes dont seem to work

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Anderson wrote:
> I'll let this one sit for a couple of days while people have a chance to try it out.

Hah your reverse psychology does not work on me.  Wait, it did.  I have code
that reproduces it. (I'll update the bug.)

The bug is far more complex and has "random" behaviour.  The prerequisites
are a _changes longpoll request using a filter function.  The symptom you
get is that the filter function is not called and treated as though it
returns false some of the time.  (You can verify it is not called by calling
log and that matching items are not returned.)

The items being changed also need to be in a view.  The view needs to be
accessed between changes.  (Changes means create/change/delete.)  This is
the crucial part of reproduction.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksUk7QACgkQmOOfHg372QThLACfaMIIzJluPHVSg2fz6yPGmYlB
LLwAn0d2Uy+7raeGviMyTxPHF9vNMnVs
=zyPB
-----END PGP SIGNATURE-----