]> git.notmuchmail.org Git - notmuch/blobdiff - lib/database.cc
database: Rename internal directory value from XTIMESTAMP to XDIRECTORY.
[notmuch] / lib / database.cc
index f7f9943f8a5ac6e03e90c40640b9198d95a2b8cf..5c49f74c998f244cf0253445e94261895b3b4e18 100644 (file)
@@ -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:
  *
@@ -112,8 +112,7 @@ prefix_t BOOLEAN_PREFIX_INTERNAL[] = {
     { "type", "T" },
     { "reference", "XREFERENCE" },
     { "replyto", "XREPLYTO" },
-    /* XXX: Need a flag day to rename XTIMESTAMP. */
-    { "directory", "XTIMESTAMP" },
+    { "directory", "XDIRECTORY" },
 };
 
 prefix_t BOOLEAN_PREFIX_EXTERNAL[] = {
@@ -639,6 +638,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 <Xapian::WritableDatabase *> (notmuch->xapian_db);
     db_path = directory_db_path (path);