From 5fe5e802ab3101a375ec1262770955904e169e47 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 8 Jan 2010 09:52:25 -0800 Subject: [PATCH] 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. --- lib/database.cc | 2 ++ 1 file changed, 2 insertions(+) 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); } } } -- 2.43.0