lib/compact: replace deprecated notmuch_database_open_verbose

It should not be necesary to have any config information here, hence
passing "" to n_d_open_with_config.
This commit is contained in:
David Bremner 2021-10-23 09:27:01 -03:00
parent e7bb7919a2
commit c7705fb95e

View 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;