X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fdirectory.cc;h=5de3319c47d1457f92da38f00717507e67684d9c;hp=78637b3ad6236333b9d992ee9d1c7fe87e46f1ad;hb=07dff496304d6dc2e8033a18691b095ed9cd212f;hpb=727fcd18c6a3897622582e71a2d71081e3ae40ea diff --git a/lib/directory.cc b/lib/directory.cc index 78637b3a..5de3319c 100644 --- a/lib/directory.cc +++ b/lib/directory.cc @@ -13,7 +13,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see http://www.gnu.org/licenses/ . + * along with this program. If not, see https://www.gnu.org/licenses/ . * * Author: Carl Worth */ @@ -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",