diff options
| author | David Bremner <david@tethera.net> | 2021-10-23 09:27:01 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-10-30 15:04:00 -0300 |
| commit | c7705fb95e2f5d11fabb7b6a07f7b7558e0928e6 (patch) | |
| tree | 4b8ae33154cdc7e0c7663018ba9a2d9f571dcfeb /lib | |
| parent | e7bb7919a2484e12cd5a672eaa21b695b7464acf (diff) | |
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.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/database.cc | 10 |
1 files 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, - ¬much, - &message); + ret = notmuch_database_open_with_config (path, + NOTMUCH_DATABASE_MODE_READ_WRITE, + "", + NULL, + ¬much, + &message); if (ret) { if (status_cb) status_cb (message, closure); return ret; |
