dovecot-2.2: lib-storage: When mailbox_get_status/metadata() aut...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Oct 31 13:29:23 EET 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/b690ff7a2d65
changeset: 15363:b690ff7a2d65
user: Timo Sirainen <tss at iki.fi>
date: Wed Oct 31 13:29:16 2012 +0200
description:
lib-storage: When mailbox_get_status/metadata() auto-syncs mailbox, use MAILBOX_SYNC_FLAG_FAST
diffstat:
src/lib-storage/index/index-status.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 285a88e00231 -r b690ff7a2d65 src/lib-storage/index/index-status.c
--- a/src/lib-storage/index/index-status.c Wed Oct 31 13:12:22 2012 +0200
+++ b/src/lib-storage/index/index-status.c Wed Oct 31 13:29:16 2012 +0200
@@ -38,7 +38,7 @@
return -1;
}
if (!box->synced) {
- if (mailbox_sync(box, 0) < 0)
+ if (mailbox_sync(box, MAILBOX_SYNC_FLAG_FAST) < 0)
return -1;
}
index_storage_get_open_status(box, items, status_r);
@@ -360,7 +360,7 @@
return -1;
}
if (!box->synced && (items & MAILBOX_METADATA_SYNC_ITEMS) != 0) {
- if (mailbox_sync(box, 0) < 0)
+ if (mailbox_sync(box, MAILBOX_SYNC_FLAG_FAST) < 0)
return -1;
}
More information about the dovecot-cvs
mailing list