[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-sync.c, 1.13,
1.14
cras at dovecot.org
cras at dovecot.org
Thu Apr 27 16:39:49 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv18001
Modified Files:
dbox-sync.c
Log Message:
And more generic error fix..
Index: dbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-sync.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- dbox-sync.c 27 Apr 2006 13:36:24 -0000 1.13
+++ dbox-sync.c 27 Apr 2006 13:39:47 -0000 1.14
@@ -29,6 +29,12 @@
}
return -1;
}
+ if (*file_seq_r == 0) {
+ mail_storage_set_critical(STORAGE(ctx->mbox->storage),
+ "Cached message offset lost for seq %u in "
+ "dbox %s", seq, ctx->mbox->path);
+ return -1;
+ }
return 0;
}
@@ -45,13 +51,6 @@
if (dbox_sync_get_file_offset(ctx, seq, &file_seq, &offset) < 0)
return -1;
- if (file_seq == 0) {
- mail_storage_set_critical(STORAGE(ctx->mbox->storage),
- "Cached message offset lost for seq %u in "
- "dbox %s", seq, ctx->mbox->path);
- return -1;
- }
-
file_seqs = array_get(&ctx->added_file_seqs, &count);
for (i = 0; i < count; i++) {
if (file_seqs[i] == file_seq) {
More information about the dovecot-cvs
mailing list