dovecot-2.2: lib-index: Fixed somewhat random assert-crashes dur...
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 28 15:18:57 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/de9b10f2e168
changeset: 17417:de9b10f2e168
user: Timo Sirainen <tss at iki.fi>
date: Wed May 28 18:17:52 2014 +0300
description:
lib-index: Fixed somewhat random assert-crashes during extension resizes.
diffstat:
src/lib-index/mail-index-transaction-export.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (17 lines):
diff -r 6d2176c558af -r de9b10f2e168 src/lib-index/mail-index-transaction-export.c
--- a/src/lib-index/mail-index-transaction-export.c Wed May 28 15:53:58 2014 +0300
+++ b/src/lib-index/mail-index-transaction-export.c Wed May 28 18:17:52 2014 +0300
@@ -114,10 +114,10 @@
/* we're resizing the extension. use the resize struct. */
intro = &resizes[ext_id];
- i_assert(intro->ext_id == idx || idx == (uint32_t)-1);
- if (idx != (uint32_t)-1)
+ if (idx != (uint32_t)-1) {
+ intro->ext_id = idx;
intro->name_size = 0;
- else {
+ } else {
intro->ext_id = (uint32_t)-1;
intro->name_size = strlen(rext->name);
}
More information about the dovecot-cvs
mailing list