[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-sync.c,
1.46, 1.47
cras at dovecot.org
cras at dovecot.org
Sun Dec 5 03:45:56 EET 2004
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-cache.c, 1.58,
1.59 mail-index-lock.c, 1.37, 1.38 mail-index-private.h, 1.42,
1.43 mail-index-view.c, 1.30, 1.31 mail-index.c, 1.177,
1.178 mail-index.h, 1.138, 1.139
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-mail.c, 1.18,
1.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv16527/lib-storage/index/maildir
Modified Files:
maildir-sync.c
Log Message:
Renamed mail_index_refresh() to mail_index_reopen_if_needed(). Added public
mail_index_refresh() which makes sure index is fully refreshed at the time.
Added mbox code to call it after mbox is locked to avoid using old mbox offsets.
Index: maildir-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-sync.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- maildir-sync.c 24 Nov 2004 20:40:41 -0000 1.46
+++ maildir-sync.c 5 Dec 2004 01:45:54 -0000 1.47
@@ -537,15 +537,13 @@
ibox->last_cur_mtime = mail_index_get_header(ibox->view)->sync_stamp;
if (ibox->dirty_cur_time == 0 && cur_mtime != ibox->last_cur_mtime) {
/* check if the index has been updated.. */
- struct mail_index_view *view;
-
- if (mail_index_view_open_locked(ibox->index, &view) < 0) {
+ if (mail_index_refresh(ibox->index) < 0) {
mail_storage_set_index_error(ibox);
return -1;
}
- ibox->last_cur_mtime = mail_index_get_header(view)->sync_stamp;
- mail_index_view_close(view);
+ ibox->last_cur_mtime =
+ mail_index_get_header(ibox->view)->sync_stamp;
}
if (new_mtime != ibox->last_new_mtime ||
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-cache.c, 1.58,
1.59 mail-index-lock.c, 1.37, 1.38 mail-index-private.h, 1.42,
1.43 mail-index-view.c, 1.30, 1.31 mail-index.c, 1.177,
1.178 mail-index.h, 1.138, 1.139
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-mail.c, 1.18,
1.19
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list