]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-dict: dict_transaction_commit_async() - Never call callback immediately
authorAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 7 Sep 2020 07:56:34 +0000 (10:56 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 10 Sep 2020 11:47:34 +0000 (11:47 +0000)
commit178bb676ea1dd380789d3587bf5e64fd85a29d7a
treeb550783f455e7a89a6ebd2d25766f0d7a137528d
parent54bc6c2d4ef9ce330b61615c9e283cd82e5e7797
lib-dict: dict_transaction_commit_async() - Never call callback immediately

This could cause confusion for the callers. Although so far all the callers
have handled it fine.

Use this wrappers for all dict drivers, even if they support async commits
themselves. This is because many of them were still calling the callback
immediately on error handling.
src/lib-dict/dict-private.h
src/lib-dict/dict.c