[PATCH 1/2] lib/compact: replace deprecated notmuch_database_open_verbose

Subject: [PATCH 1/2] lib/compact: replace deprecated notmuch_database_open_verbose

Date: Sat, 23 Oct 2021 09:27:01 -0300

To: notmuch@notmuchmail.org

Cc: David Bremner

From: David Bremner


It should not be necesary to have any config information here, hence
passing "" to n_d_open_with_config.
---
 lib/database.cc | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/lib/database.cc b/lib/database.cc
index 7eb0de79..6ef56d56 100644
--- a/lib/database.cc
+++ b/lib/database.cc
@@ -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;
-- 
2.33.0
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: