From 2e11b0de945ebadc0f3d7d1a21955f6edcfc0fd5 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 19 Nov 2008 17:07:43 +0200 Subject: [PATCH] vfile _nonowner_iter_next(): Don't return failure if we detect that acllist changes. 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 | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/plugins/acl/acl-backend-vfile-acllist.c b/src/plugins/acl/acl-backend-vfile-acllist.c index 3248be26e4..fc3cd54701 100644 --- a/src/plugins/acl/acl-backend-vfile-acllist.c +++ b/src/plugins/acl/acl-backend-vfile-acllist.c @@ -21,14 +21,12 @@ 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; -- 2.47.3