[dovecot-cvs] dovecot/src/lib-index/mbox mbox-index.h,1.29,1.30
mbox-rewrite.c,1.57,1.58 mbox-sync.c,1.30,1.31
cras at procontrol.fi
cras at procontrol.fi
Sun Jun 15 07:42:31 EEST 2003
Update of /home/cvs/dovecot/src/lib-index/mbox
In directory danu:/tmp/cvs-serv23333/lib-index/mbox
Modified Files:
mbox-index.h mbox-rewrite.c mbox-sync.c
Log Message:
Only NOOP and CHECK will now always do a real mailbox sync. Other commands
will also do it but no often than once in 5 seconds. Also with maildir we
don't anymore try to sync it before running commands since syncing is now
done automatically whenever we try to access a file that doesn't exist.
Index: mbox-index.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-index.h,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- mbox-index.h 17 May 2003 13:09:55 -0000 1.29
+++ mbox-index.h 15 Jun 2003 03:42:28 -0000 1.30
@@ -56,7 +56,7 @@
mbox_index_alloc(const char *mbox_path, const char *index_dir,
const char *control_dir);
int mbox_index_rebuild(struct mail_index *index);
-int mbox_index_sync(struct mail_index *index,
+int mbox_index_sync(struct mail_index *index, int minimal_sync,
enum mail_lock_type lock_type, int *changes);
int mbox_sync_full(struct mail_index *index);
struct istream *mbox_open_mail(struct mail_index *index,
Index: mbox-rewrite.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-rewrite.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- mbox-rewrite.c 23 May 2003 14:40:50 -0000 1.57
+++ mbox-rewrite.c 15 Jun 2003 03:42:28 -0000 1.58
@@ -600,8 +600,8 @@
if (!index->set_lock(index, MAIL_LOCK_EXCLUSIVE))
break;
- if (!index->sync_and_lock(index, MAIL_LOCK_EXCLUSIVE,
- NULL))
+ if (!index->sync_and_lock(index, FALSE,
+ MAIL_LOCK_EXCLUSIVE, NULL))
break;
}
Index: mbox-sync.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-sync.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- mbox-sync.c 8 May 2003 05:08:29 -0000 1.30
+++ mbox-sync.c 15 Jun 2003 03:42:28 -0000 1.31
@@ -65,7 +65,7 @@
return mbox_sync_full(index);
}
-int mbox_index_sync(struct mail_index *index,
+int mbox_index_sync(struct mail_index *index, int minimal_sync __attr_unused__,
enum mail_lock_type data_lock_type, int *changes)
{
struct stat st;
More information about the dovecot-cvs
mailing list