]> git.notmuchmail.org Git - notmuch/commitdiff
lib/compact: replace deprecated notmuch_database_open_verbose
authorDavid Bremner <david@tethera.net>
Sat, 23 Oct 2021 12:27:01 +0000 (09:27 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 30 Oct 2021 18:04:00 +0000 (15:04 -0300)
It should not be necesary to have any config information here, hence
passing "" to n_d_open_with_config.

lib/database.cc

index 7eb0de79ee288ce704e302d6dde73d66a9722535..6ef56d561ca50b42fdad959ad79f24e9e79255e7 100644 (file)
@@ -590,10 +590,12 @@ notmuch_database_compact (const char *path,
     notmuch_database_t *notmuch = NULL;
     char *message = NULL;
 
-    ret = notmuch_database_open_verbose (path,
-                                        NOTMUCH_DATABASE_MODE_READ_WRITE,
-                                        &notmuch,
-                                        &message);
+    ret = notmuch_database_open_with_config (path,
+                                            NOTMUCH_DATABASE_MODE_READ_WRITE,
+                                            "",
+                                            NULL,
+                                            &notmuch,
+                                            &message);
     if (ret) {
        if (status_cb) status_cb (message, closure);
        return ret;