Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
notmuch: make sure nm_db_longrun_done() release DB
Since commit 1cdfc0d the function nm_db_release() does not release DB if long-run state is enabled. This change make code more readable and shorter. Unfortunately, nm_db_release() is called from nm_db_longrun_done(), so after the change the function nm_db_longrun_done() is no-op and long transaction never finish. It means: - changes are not committed the database - after mutt restart old state (tags) is read from DB - mismatch between notmuch tags and maildir filenames This commit disables long-run state in nm_db_longrun_done() before nm_db_release() is called.
- Loading branch information