summaryrefslogtreecommitdiff
path: root/lib/database.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/database.cc')
-rw-r--r--lib/database.cc2
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);
}
}
}