mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-02-17 23:53:15 +01:00
lib: migrate notmuch_database_upgrade to new query_search API
Here we depend on the error path cleaning up query
This commit is contained in:
parent
c44db65669
commit
2501c2565c
1 changed files with 4 additions and 3 deletions
|
@ -1450,9 +1450,10 @@ notmuch_database_upgrade (notmuch_database_t *notmuch,
|
||||||
|
|
||||||
query = notmuch_query_create (notmuch, "");
|
query = notmuch_query_create (notmuch, "");
|
||||||
|
|
||||||
/* XXX: this should use the _st version, but needs an error
|
status = notmuch_query_search_messages_st (query, &messages);
|
||||||
path */
|
if (status)
|
||||||
for (messages = notmuch_query_search_messages (query);
|
goto DONE;
|
||||||
|
for (;
|
||||||
notmuch_messages_valid (messages);
|
notmuch_messages_valid (messages);
|
||||||
notmuch_messages_move_to_next (messages))
|
notmuch_messages_move_to_next (messages))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue