changeset 8443:4a99dc803465 HEAD

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.
author Timo Sirainen <tss@iki.fi>
date Wed, 19 Nov 2008 17:07:43 +0200
parents 944a13d1fe83
children e3c8fd174378
files src/plugins/acl/acl-backend-vfile-acllist.c
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/acl/acl-backend-vfile-acllist.c	Wed Nov 19 16:50:24 2008 +0200
+++ b/src/plugins/acl/acl-backend-vfile-acllist.c	Wed Nov 19 17:07:43 2008 +0200
@@ -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 @@
 
 	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 @@
 	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;