notmuch/lib
Austin Clements e6ad3a5dd4 lib: Only sync modified message documents
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.
2015-08-04 08:54:46 +02:00
..
database-private.h lib: add a log function with output to a string in notmuch_database_t 2015-03-29 00:34:15 +01:00
database.cc lib: reject relative paths in n_d_{create,open}_verbose 2015-06-12 07:34:50 +02:00
directory.cc lib: replace almost all fprintfs in library with _n_d_log 2015-03-29 00:34:15 +01:00
filenames.c lib: fix NULL checks for filenames iterators 2012-09-01 23:03:11 -03:00
gen-version-script.sh build: add "set -eu" to version script generation 2015-07-28 21:34:01 +02:00
index.cc lib: replace almost all fprintfs in library with _n_d_log 2015-03-29 00:34:15 +01:00
libsha1.c util: detect byte order 2013-11-27 07:43:29 -04:00
libsha1.h fix sum moar typos [comments in source code] 2011-06-23 15:58:39 -07:00
Makefile fix sum moar typos [build scripts, Makefiles] 2011-06-23 15:44:59 -07:00
Makefile.local lib, ruby: make use of -Wl,--no-undefined configurable 2015-06-13 17:52:48 +02:00
message-file.c lib: eliminate fprintf from _notmuch_message_file_open 2015-03-29 00:34:15 +01:00
message.cc lib: Only sync modified message documents 2015-08-04 08:54:46 +02:00
messages.c lib: Eliminate _notmuch_message_list_append 2013-02-18 20:20:38 -04:00
notmuch-private.h lib: eliminate fprintf from _notmuch_message_file_open 2015-03-29 00:34:15 +01:00
notmuch.h lib: add NOTMUCH_STATUS_PATH_ERROR 2015-06-12 07:34:47 +02:00
parse-time-vrp.cc lib: add date range query support 2012-10-31 16:55:32 -03:00
parse-time-vrp.h lib: add date range query support 2012-10-31 16:55:32 -03:00
query.cc lib: replace almost all fprintfs in library with _n_d_log 2015-03-29 00:34:15 +01:00
sha1.c lib: Start all function names in notmuch-private.h with 2014-07-13 12:25:29 -03:00
string-list.c Fixup string list author 2011-03-21 02:45:18 -04:00
tags.c lib: fix warnings when building with clang 2012-12-01 08:10:32 -04:00
thread.cc lib: Fix use after free 2015-01-19 08:15:14 +01:00