]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dict: dict_have_async_operations() - Ignore non-committed transactions
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 26 Aug 2024 12:30:02 +0000 (15:30 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 26 Aug 2024 12:30:02 +0000 (15:30 +0300)
If the transaction isn't committed, it can't be waited on.

src/lib-dict/dict.c

index 4a9d45cd075d7c7cabfd3b07b030172e3d906d5a..953fe93457dba39ed00c33f77c3c835e0d0020b2 100644 (file)
@@ -258,7 +258,6 @@ void dict_wait(struct dict *dict)
 bool dict_have_async_operations(struct dict *dict)
 {
        return dict->iter_count != 0 ||
-               dict->transaction_count != 0 ||
                dict->commits != NULL;
 }