X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fdatabase.cc;h=afafe88cc08cfd6234f80309bb9ba6d7ae02c874;hb=38f0d44a82d4a6584bd95f611dfb429057a37b62;hp=86bf26192079bcbcf9f5475556d0ad71be2fef0b;hpb=6a833a6e83865f6999707cc30768d07e1351c2cb;p=notmuch diff --git a/lib/database.cc b/lib/database.cc index 86bf2619..afafe88c 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -185,6 +185,14 @@ typedef struct { * generated is 1 and the value will be * incremented for each thread ID. * + * C* metadata keys starting with C indicate + * configuration data. It can be managed with the + * n_database_*config* API. There is a convention + * of hierarchical keys separated by '.' (e.g. + * query.notmuch stores the value for the named + * query 'notmuch'), but it is not enforced by the + * API. + * * Obsolete metadata * ----------------- * @@ -1099,6 +1107,13 @@ notmuch_database_close (notmuch_database_t *notmuch) delete notmuch->last_mod_range_processor; notmuch->last_mod_range_processor = NULL; +#if HAVE_XAPIAN_FIELD_PROCESSOR + delete notmuch->date_field_processor; + notmuch->date_field_processor = NULL; + delete notmuch->query_field_processor; + notmuch->query_field_processor = NULL; +#endif + return status; }