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.
This commit is contained in:
Carl Worth 2010-01-08 09:52:25 -08:00
parent c485c51585
commit 5fe5e802ab

View file

@ -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);
}
}
}