Even though with force=FALSE in theory it would be possible to work around
it, but more likely it will just cause another I/O error. This simplifies
the code for the following changes.
&reset, &reason);
if (ret <= 0) {
mail_index_view_close(&view);
- if (force && ret < 0) {
- /* if we failed because of a syscall error, make sure
- we return a failure. */
+ if (ret < 0) {
+ /* I/O failure */
return -1;
}
- if (force && ret == 0) {
+ if (force) {
/* the seq/offset is probably broken */
mail_index_set_error(index, "Index %s: Lost log for "
"seq=%u offset=%"PRIuUOFF_T": %s "