lib: update cached mtime in notmuch_directory_set_mtime

Without this change, the following code fails

  notmuch_directory_set_mtime(dir, 12345);
  assert(notmuch_directory_get_mtime(dir) == 12345);
This commit is contained in:
David Bremner 2016-06-27 22:43:04 +02:00
parent 3ba1b938b5
commit 59fed50a82

View file

@ -227,6 +227,9 @@ notmuch_directory_set_mtime (notmuch_directory_t *directory,
Xapian::sortable_serialise (mtime));
db->replace_document (directory->document_id, directory->doc);
directory->mtime = mtime;
} catch (const Xapian::Error &error) {
_notmuch_database_log (notmuch,
"A Xapian exception occurred setting directory mtime: %s.\n",