It is wrong most of the time in _notmuch_message_remove_terms, but
that function is too low level to know how to call
_n_m_invalidate_metadata with the right argument, at least not without
more extensive changes. This change merely makes the current behaviour
more obvious, since the other calls cannot have relied on metadata
being invalidated.
try {
/* XXX better error reporting ? */
_notmuch_message_remove_terms (message, term_prefix);
+ _notmuch_message_invalidate_metadata (message, "property");
} catch (Xapian::Error &error) {
LOG_XAPIAN_EXCEPTION (message, error);
return _notmuch_xapian_error ();
/* Ignore failure to remove non-existent term. */
}
}
-
- _notmuch_message_invalidate_metadata (message, "property");
}