diff options
| author | David Bremner <david@tethera.net> | 2017-02-23 21:38:24 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-02-25 21:09:17 -0400 |
| commit | e17a914b77230d942b36639c261c345849fe9d52 (patch) | |
| tree | 4339301315d1ae8845dc09601ed8a0d3ec014785 /lib/database-private.h | |
| parent | ae731c183a64c1b68ceb145417897ae1c32b4971 (diff) | |
lib: add _notmuch_database_reopen
The main expected use is to recover from a Xapian::DatabaseChanged
exception.
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 2fb60f5e..06882439 100644 --- a/lib/database-private.h +++ b/lib/database-private.h @@ -207,6 +207,10 @@ struct _notmuch_database { unsigned long revision; const char *uuid; + /* Keep track of the number of times the database has been re-opened + * (or other global invalidations of notmuch's caching) + */ + unsigned long view; Xapian::QueryParser *query_parser; Xapian::TermGenerator *term_gen; Xapian::ValueRangeProcessor *value_range_processor; |
