[PATCH 0/2] A bug in the exclude code

Jameson Graef Rollins jrollins at finestructure.net
Mon Mar 12 13:03:12 PDT 2012


On Mon, 12 Mar 2012 11:31:52 +0000, Mark Walters <markwalters1009 at gmail.com> wrote:
> There is a bug in the exclude code (found by jrollins in the
> --with-excluded series) but also present in master.  None of the
> current tests were finding it so the first patch adds two tests.

Hey, Mark.  Thanks so much for looking in to this.  It look like this
patch fixes the issue for me too!  Very excited to see this all coming
together.

> The bug (and test failure) do not appear in all configuations: on my
> main test machine (an oldish debian testing 32bit userspace with a
> 64bit kernel and xapian 1.2.7) all tests pass. On my laptop (a recent
> debian testing 64bit userspace and xapian 1.2.8) one of the new tests
> fails.

It was failing for me too, but looking closer at the test I actually
found a bug: you accidentally used the old style --no-exclude option,
instead of the new --with-excludes.  When you fix the call all the tests
pass fine.

> The second patch fixes the behaviour for me but I don't see why it
> should make a difference: searches for A and not B should give the
> same results as A and not (A and B). It could be a bug in xapian, it
> could be that I am not allowed to reuse queries as I do (is query1 =
> query1 and query2 allowed?) or it could be some memory use bug on my
> part.

I can't explain it either, but there's certainly a lot about xapian that
I don't understand.  Maybe one of the xapian gurus will have some ideas
(Olly?  Austin?).

Anyway, thanks again for pushing on all of this, Mark.

jamie.

PS. Not a big deal, but it would have been nice for this patch set to
have been sent in-reply-to the original series it fixes, just to keep
everything together.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120312/5a0d4dfe/attachment.pgp>


More information about the notmuch mailing list