From: Daniel Schoepe <daniel@schoepe.org>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: [PATCH 4/5] cli: add global option "--uuid"
Date: Mon, 10 Aug 2015 11:40:21 +0200 [thread overview]
Message-ID: <87fv3rtray.fsf@schoepe.localhost> (raw)
In-Reply-To: <1439112285-6681-5-git-send-email-david@tethera.net>
On Sun, 09 Aug 2015 11:24+0200, David Bremner wrote:
> + ``--uuid=HEX``
> + Enforce that the database UUID (a unique identifier which
> + persists until e.g. the database is compacted)
> + is HEX; exit with an error if it is not. This is useful to
> + detect rollover in modification counts on messages. You can
> + find this UUID in the first column of output from
> + ``notmuch count --output=modifications``
I think it's not entirely clear what the connection between the UUID and
the revisions on messages is. For example, compacting a database
shouldn't make a difference "extensionally", so the naive assumption
might be that the UUID, or, maybe more importantly, the revision counts
don't change.
For example, if lastmod queries are used to incrementally back up or
synchronize tags, then it doesn't matter if the database got compacted,
all one cares about are the changes to messages' tags since an earlier
point.
Based on quick experiments, it seems that the revisions don't change
when compacting the database; is this something that the patches
guarantee or a coincidence?
Best regards,
Daniel
next prev parent reply other threads:[~2015-08-10 9:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-09 9:24 revisision tracking patches round 3 David Bremner
2015-08-09 9:24 ` [PATCH 1/5] lib: Add per-message last modification tracking David Bremner
2015-08-09 9:24 ` [PATCH 2/5] lib: API to retrieve database revision and UUID David Bremner
2015-08-09 9:24 ` [PATCH 3/5] cli/count: add --output=modifications David Bremner
2015-08-10 19:28 ` Tomi Ollila
2015-08-11 18:45 ` David Bremner
2015-08-11 20:13 ` Tomi Ollila
2015-08-12 9:38 ` David Bremner
2015-08-12 12:33 ` Daniel Schoepe
2015-08-09 9:24 ` [PATCH 4/5] cli: add global option "--uuid" David Bremner
2015-08-10 9:40 ` Daniel Schoepe [this message]
2015-08-10 11:32 ` David Bremner
2015-08-10 12:57 ` Daniel Schoepe
2015-08-10 19:42 ` Tomi Ollila
2015-08-09 9:24 ` [PATCH 5/5] lib: Add "lastmod:" queries for filtering by last modification David Bremner
-- strict thread matches above, loose matches on Subject: below --
2015-08-14 16:47 revision tracking patches round 4 David Bremner
2015-08-14 16:47 ` [PATCH 4/5] cli: add global option "--uuid" David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fv3rtray.fsf@schoepe.localhost \
--to=daniel@schoepe.org \
--cc=david@tethera.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).