]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Fixed potential .vsize.lock deadlock.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 10 Aug 2016 16:07:18 +0000 (19:07 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 10 Aug 2016 23:14:59 +0000 (02:14 +0300)
src/lib-storage/index/index-storage.c

index f5fd50f789b35f0a13f3fe63d0472e8bca8949ea..0749634d2dd0142e4ab23b91c9013dc0ec443e15 100644 (file)
@@ -1021,7 +1021,7 @@ int index_storage_expunged_sync_begin(struct mailbox *box,
                /* race condition - need to abort the sync and retry with
                   the vsize locked */
                mail_index_sync_rollback(ctx_r);
-               index_storage_expunging_init(box);
+               index_storage_expunging_deinit(box);
                return index_storage_expunged_sync_begin(box, ctx_r, view_r,
                                                         trans_r, flags);
        }