From: Carl Worth Date: Fri, 8 Jan 2010 17:52:25 +0000 (-0800) Subject: lib: Delete stale timestamp documents during database upgrade. X-Git-Tag: 0.1~147 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=5fe5e802ab3101a375ec1262770955904e169e47;ds=sidebyside lib: Delete stale timestamp documents during database upgrade. Once we move the timestamp to the new directory document, we don't need the old one anymore. --- diff --git a/lib/database.cc b/lib/database.cc index 831b4a16..d0262722 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -783,6 +783,8 @@ notmuch_database_upgrade (notmuch_database_t *notmuch, term.c_str() + 10); notmuch_directory_set_mtime (directory, mtime); notmuch_directory_destroy (directory); + + db->delete_document (*p); } } }