diff options
author | Carl Worth <cworth@cworth.org> | 2010-01-08 09:52:25 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-01-08 09:57:09 -0800 |
commit | 5fe5e802ab3101a375ec1262770955904e169e47 (patch) | |
tree | 303348707a94b2b7fac69155e7212d6fb34b80da /lib/database.cc | |
parent | c485c51585d8e51d289eb9830203fa322d7a0740 (diff) |
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.
Diffstat (limited to 'lib/database.cc')
-rw-r--r-- | lib/database.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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); } } } |