From 5fe5e802ab3101a375ec1262770955904e169e47 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 8 Jan 2010 09:52:25 -0800 Subject: 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(+) (limited to 'lib') diff --git a/lib/database.cc b/lib/database.cc index 831b4a1..d026272 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); } } } -- cgit v1.2.3