mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
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:
parent
3ba1b938b5
commit
59fed50a82
1 changed files with 3 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue