]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
vfile _nonowner_iter_next(): Don't return failure if we detect that acllist changes.
authorTimo Sirainen <tss@iki.fi>
Wed, 19 Nov 2008 15:07:43 +0000 (17:07 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 19 Nov 2008 15:07:43 +0000 (17:07 +0200)
The code was probably added during development for some reason but it has
never been of any use.

--HG--
branch : HEAD

src/plugins/acl/acl-backend-vfile-acllist.c

index 3248be26e4cb34714f4d420d744b961d8bc6feee..fc3cd5470169a018f1e33361ea693dda0155d844 100644 (file)
 struct acl_mailbox_list_context_vfile {
        struct acl_mailbox_list_context ctx;
 
-       unsigned int acllist_change_counter;
        unsigned int idx;
 };
 
 static void
 acllist_clear(struct acl_backend_vfile *backend, uoff_t file_size)
 {
-       backend->acllist_change_counter++;
        if (backend->acllist_pool == NULL) {
                backend->acllist_pool =
                        pool_alloconly_create("vfile acllist",
@@ -294,7 +292,6 @@ acl_backend_vfile_nonowner_iter_init(struct acl_backend *_backend)
 
        ctx = i_new(struct acl_mailbox_list_context_vfile, 1);
        ctx->ctx.backend = _backend;
-       ctx->acllist_change_counter = backend->acllist_change_counter;
        return &ctx->ctx;
 }
 
@@ -308,9 +305,6 @@ int acl_backend_vfile_nonowner_iter_next(struct acl_mailbox_list_context *_ctx,
        const struct acl_backend_vfile_acllist *acllist;
        unsigned int count;
 
-       if (ctx->acllist_change_counter != backend->acllist_change_counter)
-               return -1;
-
        acllist = array_get(&backend->acllist, &count);
        if (ctx->idx == count)
                return 0;