[dovecot-cvs] dovecot/src/plugins/convert convert-storage.c, 1.5.2.3, 1.5.2.4
tss at dovecot.org
tss at dovecot.org
Thu Dec 28 16:27:49 UTC 2006
Update of /var/lib/cvs/dovecot/src/plugins/convert
In directory talvi:/tmp/cvs-serv32286/src/plugins/convert
Modified Files:
Tag: branch_1_0
convert-storage.c
Log Message:
Added dotlock_use_excl setting.
Index: convert-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/convert/convert-storage.c,v
retrieving revision 1.5.2.3
retrieving revision 1.5.2.4
diff -u -d -r1.5.2.3 -r1.5.2.4
--- convert-storage.c 3 Dec 2006 13:35:16 -0000 1.5.2.3
+++ convert-storage.c 28 Dec 2006 16:27:46 -0000 1.5.2.4
@@ -10,7 +10,7 @@
#define CONVERT_LOCK_FILENAME ".dovecot.convert"
-const struct dotlock_settings dotlock_settings = {
+struct dotlock_settings dotlock_settings = {
MEMBER(temp_prefix) NULL,
MEMBER(lock_suffix) NULL,
@@ -232,6 +232,9 @@
}
path = t_strconcat(home_dir, "/"CONVERT_LOCK_FILENAME, NULL);
+ dotlock_settings.use_excl_lock =
+ (source_storage->flags &
+ MAIL_STORAGE_FLAG_DOTLOCK_USE_EXCL) != 0;
ret = file_dotlock_create(&dotlock_settings, path, 0, &dotlock);
if (ret <= 0) {
if (ret == 0)
More information about the dovecot-cvs
mailing list