dovecot-2.1: mdbox: When mail's refcount is too high, don't prev...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Nov 2 12:25:33 EET 2013
details: http://hg.dovecot.org/dovecot-2.1/rev/f572fbafb445
changeset: 15006:f572fbafb445
user: Timo Sirainen <tss at iki.fi>
date: Sat Nov 02 12:25:09 2013 +0200
description:
mdbox: When mail's refcount is too high, don't prevent shrinking the refcount.
diffstat:
src/lib-storage/index/dbox-multi/mdbox-map.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d16e212531ec -r f572fbafb445 src/lib-storage/index/dbox-multi/mdbox-map.c
--- a/src/lib-storage/index/dbox-multi/mdbox-map.c Sat Oct 26 18:00:07 2013 +0300
+++ b/src/lib-storage/index/dbox-multi/mdbox-map.c Sat Nov 02 12:25:09 2013 +0200
@@ -670,7 +670,7 @@
map_uid);
return -1;
}
- if (old_diff + new_diff >= 32768) {
+ if (old_diff + new_diff >= 32768 && new_diff > 0) {
/* we're getting close to the 64k limit. fail early
to make it less likely that two processes increase
the refcount enough times to cross the limit */
More information about the dovecot-cvs
mailing list