From: Timo Sirainen Date: Mon, 22 Mar 2021 14:50:04 +0000 (+0200) Subject: dict-client: Use the proper active ioloop while calling commit() and lookup() callbacks X-Git-Tag: 2.3.16~215 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad5d1ee03fd49c5ee5f52e4d191e76e6db07d350;p=thirdparty%2Fdovecot%2Fcore.git dict-client: Use the proper active ioloop while calling commit() and lookup() callbacks If the callbacks did any IO/timeout changes, they would have gone to a wrong ioloop. --- diff --git a/src/lib-dict/dict-client.c b/src/lib-dict/dict-client.c index ee16e10ce4..ee69f056b3 100644 --- a/src/lib-dict/dict-client.c +++ b/src/lib-dict/dict-client.c @@ -956,7 +956,9 @@ client_dict_lookup_async_callback(struct client_dict_cmd *cmd, cmd->query); } + dict_pre_api_callback(&dict->dict); cmd->api_callback.lookup(&result, cmd->api_callback.context); + dict_post_api_callback(&dict->dict); } static void @@ -1330,7 +1332,9 @@ client_dict_transaction_commit_callback(struct client_dict_cmd *cmd, } client_dict_transaction_free(&cmd->trans); + dict_pre_api_callback(&dict->dict); cmd->api_callback.commit(&result, cmd->api_callback.context); + dict_post_api_callback(&dict->dict); }