X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fdatabase.cc;h=0ef59ea9e40564a15dee60636cfa82af9a78131e;hb=154bf7ac677c41168c5c6a982fee3f22350adfef;hp=f7f9943f8a5ac6e03e90c40640b9198d95a2b8cf;hpb=9257622da8ed50502e59adec69e5daa043ef242a;p=notmuch diff --git a/lib/database.cc b/lib/database.cc index f7f9943f..0ef59ea9 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -86,7 +86,7 @@ typedef struct { * * The directory document is indexed with a single prefixed term: * - * directory: The directory path (an absolute path) + * directory: The directory path (relative to the database path) * * and has a single value: * @@ -639,6 +639,8 @@ notmuch_database_set_directory_mtime (notmuch_database_t *notmuch, return NOTMUCH_STATUS_READONLY_DATABASE; } + path = _notmuch_database_relative_path (notmuch, path); + db = static_cast (notmuch->xapian_db); db_path = directory_db_path (path);