]> git.notmuchmail.org Git - notmuch/commit
Support aborting the atomic context
authorFloris Bruynooghe <flub@devork.be>
Sun, 14 Jun 2020 15:23:19 +0000 (17:23 +0200)
committerDavid Bremner <david@tethera.net>
Tue, 16 Jun 2020 11:17:39 +0000 (08:17 -0300)
commit776a54a0e437651abd69a03b9f7d591ea1f992cb
treeece802dc23cc8cf8c8e6774006b586ad5e2fdd92
parent2d895a0119b423b117d10e890c9e0eb5d2a9cdf8
Support aborting the atomic context

Since it is possible to use an atomic context to abort a number of
changes support this usage.  Because the only way to actually abort
the transaction is to close the database this must also do so.

Amended by db: Note the limitation requiring close is a limitation of
the underlying notmuch API, which should be fixed in a future notmuch
release.
bindings/python-cffi/notmuch2/_database.py
bindings/python-cffi/tests/test_database.py