[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.25,
1.26
cras at procontrol.fi
cras at procontrol.fi
Wed Jun 16 08:54:45 EEST 2004
Update of /home/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv7057/lib-storage/index/mbox
Modified Files:
mbox-sync.c
Log Message:
sync fix
Index: mbox-sync.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- mbox-sync.c 16 Jun 2004 05:38:23 -0000 1.25
+++ mbox-sync.c 16 Jun 2004 05:54:43 -0000 1.26
@@ -655,19 +655,21 @@
} else {
/* we sync only what we need to. jump to first record that
needs updating */
- if (sync_ctx->sync_rec.uid1 == 0) {
+ const struct mail_index_sync_rec *sync_rec;
+
+ if (buffer_get_used_size(sync_ctx->syncs) == 0) {
if (mbox_sync_read_index_syncs(sync_ctx, 1,
&expunged) < 0)
return -1;
- }
- if (sync_ctx->sync_rec.uid1 == 0) {
- /* nothing to do */
- return 0;
+ if (buffer_get_used_size(sync_ctx->syncs) == 0) {
+ /* nothing to do */
+ return 0;
+ }
}
- uid = sync_ctx->sync_rec.uid1;
- if (mbox_sync_seek_to_uid(sync_ctx, uid) < 0)
+ sync_rec = buffer_get_data(sync_ctx->syncs, NULL);
+ if (mbox_sync_seek_to_uid(sync_ctx, sync_rec->uid1) < 0)
return -1;
if (sync_ctx->seq > 0) {
More information about the dovecot-cvs
mailing list