notmuch/lib
Steven Allen c946356cdc forbid atomic transactions on writable, upgradable databases
We can't (but currently do) allow upgrades within transactions because
upgrades need their own transactions. We don't want to re-use the
current transaction because bailing out of an upgrade would mean loosing
all previous changes (because our "atomic" transactions don't commit
before hand). This gives us two options:

1. Fail at the beginning of upgrade (tell the user to end the
   transaction, upgrade, and start over).
2. Don't allow the user to start the transaction.

I went with the latter because:

1. There is no reason to call `begin_atomic` unless you intend to to
   write to the database and anyone intending to write to the database
   should upgrade it first.
2. This means that nothing inside an atomic transaction can ever fail
   with NOTMUCH_STATUS_UPGRADE_REQUIRED.
2015-11-23 08:15:37 -04:00
..
database-private.h lib: Add "lastmod:" queries for filtering by last modification 2015-08-14 18:23:49 +02:00
database.cc forbid atomic transactions on writable, upgradable databases 2015-11-23 08:15:37 -04:00
directory.cc lib: add interface to delete directory documents 2015-10-10 09:14:25 -03: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: content disposition values are not case-sensitive 2015-11-19 07:47:29 -04: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 build: extract library versions from notmuch.h 2015-08-10 13:53:55 +02:00
message-file.c util: move strcase_equal and strcase_hash to util 2015-09-07 09:43:31 -03:00
message.cc lib: Add per-message last modification tracking 2015-08-13 23:52:51 +02:00
messages.c lib: Eliminate _notmuch_message_list_append 2013-02-18 20:20:38 -04:00
notmuch-private.h util: move strcase_equal and strcase_hash to util 2015-09-07 09:43:31 -03:00
notmuch.h Documentation: fix type name spelling 2015-10-27 08:07:31 -03:00
parse-time-vrp.cc lib: add support for date:<expr>..! to mean date:<expr>..<expr> 2015-09-25 21:55:24 -03:00
parse-time-vrp.h lib: add date range query support 2012-10-31 16:55:32 -03:00
query.cc lib: add versions of n_q_count_{message,threads} with status return 2015-10-05 19:44:07 -03: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: migrate thread.cc to new query_search API 2015-10-05 19:53:53 -03:00