]> git.notmuchmail.org Git - notmuch/commitdiff
lib: Only sync modified message documents
authorAustin Clements <amdragon@mit.edu>
Fri, 5 Jun 2015 17:28:33 +0000 (19:28 +0200)
committerDavid Bremner <david@tethera.net>
Tue, 4 Aug 2015 06:54:46 +0000 (08:54 +0200)
Previously, we updated the database copy of a message on every call to
_notmuch_message_sync, even if nothing had changed.  In particular,
this always happens on a thaw, so a freeze/thaw pair with no
modifications between still caused a database update.

We only modify message documents in a handful of places, so keep track
of whether the document has been modified and only sync it when
necessary.  This will be particularly important when we add message
revision tracking.


No differences found