diff options
| author | David Bremner <david@tethera.net> | 2021-03-14 11:01:58 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-03-18 08:03:48 -0300 |
| commit | f0717aa380cfa84c1973f7b03948d93b261a73fe (patch) | |
| tree | f209beab0a8e4c7ce32c079b4c0837973510e8b1 /lib/database-private.h | |
| parent | 1121299905e2b2684d7cc56ec35c26c3a012783e (diff) | |
lib: save path of xapian database in notmuch struct.
This will allow re-opening in a different mode (read/write
vs. read-only) with current Xapian API. It will also prove useful when
updating the compact functions to support more flexible database
location.
Diffstat (limited to 'lib/database-private.h')
| -rw-r--r-- | lib/database-private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/database-private.h b/lib/database-private.h index d83cf0d0..d936b216 100644 --- a/lib/database-private.h +++ b/lib/database-private.h @@ -189,8 +189,12 @@ operator& (notmuch_field_flag_t a, notmuch_field_flag_t b) struct _notmuch_database { bool exception_reported; + /* Path to database parent directory and or/mail root */ char *path; + /* Path to actual database */ + const char *xapian_path; + int atomic_nesting; /* true if changes have been made in this atomic section */ bool atomic_dirty; |
