dovecot-1.2: vfile _nonowner_iter_next(): Don't return failure i...

dovecot at dovecot.org dovecot at dovecot.org
Wed Nov 19 17:11:22 EET 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/4a99dc803465
changeset: 8443:4a99dc803465
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Nov 19 17:07:43 2008 +0200
description:
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.

diffstat:

1 file changed, 6 deletions(-)
src/plugins/acl/acl-backend-vfile-acllist.c |    6 ------

diffs (36 lines):

diff -r 944a13d1fe83 -r 4a99dc803465 src/plugins/acl/acl-backend-vfile-acllist.c
--- 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_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(str
 
 	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
 	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;


More information about the dovecot-cvs mailing list