[dovecot-cvs] dovecot/src/lib-index mail-index-view-sync.c, 1.52.2.1, 1.52.2.2 mail-index.h, 1.158.2.1, 1.158.2.2
tss at dovecot.org
tss at dovecot.org
Sun Oct 15 18:56:08 UTC 2006
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv25619/lib-index
Modified Files:
Tag: branch_1_0
mail-index-view-sync.c mail-index.h
Log Message:
Try to avoid sending duplicate/useless flag updates.
Index: mail-index-view-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-view-sync.c,v
retrieving revision 1.52.2.1
retrieving revision 1.52.2.2
diff -u -d -r1.52.2.1 -r1.52.2.2
--- mail-index-view-sync.c 11 Jun 2006 19:01:28 -0000 1.52.2.1
+++ mail-index-view-sync.c 15 Oct 2006 17:56:06 -0000 1.52.2.2
@@ -520,14 +520,10 @@
return 1;
}
-const uint32_t *
-mail_index_view_sync_get_expunges(struct mail_index_view_sync_ctx *ctx,
- unsigned int *count_r)
+const array_t *
+mail_index_view_sync_get_expunges(struct mail_index_view_sync_ctx *ctx)
{
- const struct mail_transaction_expunge *data;
-
- data = array_get(&ctx->expunges, count_r);
- return (const uint32_t *)data;
+ return &ctx->expunges;
}
static void
Index: mail-index.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.h,v
retrieving revision 1.158.2.1
retrieving revision 1.158.2.2
diff -u -d -r1.158.2.1 -r1.158.2.2
--- mail-index.h 13 Oct 2006 15:22:13 -0000 1.158.2.1
+++ mail-index.h 15 Oct 2006 17:56:06 -0000 1.158.2.2
@@ -262,9 +262,8 @@
/* Returns -1 if error, 0 if sync is finished, 1 if record was filled. */
int mail_index_view_sync_next(struct mail_index_view_sync_ctx *ctx,
struct mail_index_view_sync_rec *sync_rec);
-const uint32_t *
-mail_index_view_sync_get_expunges(struct mail_index_view_sync_ctx *ctx,
- unsigned int *count_r);
+const array_t *
+mail_index_view_sync_get_expunges(struct mail_index_view_sync_ctx *ctx);
void mail_index_view_sync_end(struct mail_index_view_sync_ctx **ctx);
/* Returns the index header. */
More information about the dovecot-cvs
mailing list